diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-21 11:37:00 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-21 11:37:00 -0800 |
commit | 19c7124c4f0b78572509b3b54d20ddcfddeb0baa (patch) | |
tree | c22d2a8f3baf9b00e36354e58778efeba9266a2b | |
parent | 5d0c1814ad624090620e907012e0eaf353468202 (diff) | |
download | rails-19c7124c4f0b78572509b3b54d20ddcfddeb0baa.tar.gz rails-19c7124c4f0b78572509b3b54d20ddcfddeb0baa.tar.bz2 rails-19c7124c4f0b78572509b3b54d20ddcfddeb0baa.zip |
more ruby 2.0 respond_to? changes
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index e1dad5b166..88b356caee 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -427,7 +427,7 @@ module ActiveRecord table, arguments = args.shift, args method = :"#{command}_sql" - if respond_to?(method) + if respond_to?(method, true) send(method, table, *arguments) else raise "Unknown method called : #{method}(#{arguments.inspect})" |