Skip to content
Browse files

more ruby 2.0 respond_to? changes

  • Loading branch information...
1 parent 0032772 commit 36c8521ef6a7c478fcd09464a796d2a39761da82 @tenderlove tenderlove committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -688,7 +688,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 36c8521

Please sign in to comment.
Something went wrong with that request. Please try again.