Browse files

more ruby 2.0 respond_to? changes

  • Loading branch information...
1 parent 0052d90 commit c73f8833d59c587be3029be9ba624689a61cc14c @tenderlove tenderlove committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -427,7 +427,7 @@ def bulk_change_table(table_name, operations) #:nodoc:
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})"

0 comments on commit c73f883

Please sign in to comment.