method
method_missing
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::Migration
method_missing(method, *arguments, &block)public
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 455
def method_missing(method, *arguments, &block)
arg_list = arguments.map{ |a| a.inspect } * ', '
say_with_time "#{method}(#{arg_list})" do
unless reverting?
unless arguments.empty? || method == :execute
arguments[0] = Migrator.proper_table_name(arguments.first) unless method == :assume_migrated_upto_version
arguments[1] = Migrator.proper_table_name(arguments.second) if method == :rename_table
end
end
return super unless connection.respond_to?(method)
connection.send(method, *arguments, &block)
end
end