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:12 -0800 |
commit | c73f8833d59c587be3029be9ba624689a61cc14c (patch) | |
tree | d25094a49bff70edef99b2602b30785d0b03002e /activerecord | |
parent | 0052d90f207af6f1b8cf2f9dd455869fa9f01450 (diff) | |
download | rails-c73f8833d59c587be3029be9ba624689a61cc14c.tar.gz rails-c73f8833d59c587be3029be9ba624689a61cc14c.tar.bz2 rails-c73f8833d59c587be3029be9ba624689a61cc14c.zip |
more ruby 2.0 respond_to? changes
Diffstat (limited to 'activerecord')
-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 9d9dbcc355..9e2da4a9ee 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})" |