class method
self.method_missing
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.0.20Signature
self.method_missing(method, *arguments, &block)
No documentation comment.
Parameters
-
methodreq -
argumentsrest -
blockblock
Source
# File activerecord/lib/active_record/migration.rb, line 378
def method_missing(method, *arguments, &block)
arg_list = arguments.map{ |a| a.inspect } * ', '
say_with_time "#{method}(#{arg_list})" do
unless arguments.empty? || method == :execute
arguments[0] = Migrator.proper_table_name(arguments.first)
end
connection.send(method, *arguments, &block)
end
end
Defined in activerecord/lib/active_record/migration.rb line 378
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration