instance method
method_missing
Ruby on Rails 3.2.22.5
Since v3.1.12Signature
method_missing(method, *arguments, &block)
No documentation comment.
Parameters
-
methodreq -
argumentsrest -
blockblock
Source
# 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
Defined in activerecord/lib/active_record/migration.rb line 455
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration