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



391
392
393
394
395
396
397
# File 'lib/active_record/connection_adapters/jdbc_adapter.rb', line 391

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
  end
end