Permalink
Browse files

more ruby 2.0 respond_to? changes

  • Loading branch information...
tenderlove committed Feb 21, 2012
1 parent 5d0c181 commit 19c7124c4f0b78572509b3b54d20ddcfddeb0baa
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 19c7124

Please sign in to comment.