Files

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::ShadowCoreMethods

Allows properly re-wrapping/re-defining methods that may already be alias_method_chain'd.

Public Instance Methods

alias_chained_method(meth, feature, target) click to toggle source
# File lib/arjdbc/jdbc/core_ext.rb, line 15
def alias_chained_method(meth, feature, target)
  if instance_methods.include?("#{meth}_without_#{feature}")
    alias_method "#{meth}_without_#{feature}".to_sym, target
  else
    alias_method meth, target if meth != target
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.