Module: ActiveRecord::ConnectionAdapters::JdbcAdapter::ShadowCoreMethods

Included in:
ActiveRecord::ConnectionAdapters::JdbcAdapter
Defined in:
lib/active_record/connection_adapters/jdbc_adapter.rb

Instance Method Summary collapse

Instance Method Details

#alias_chained_method(meth, feature, target) ⇒ Object



405
406
407
408
409
410
411
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 405

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