class method self.method_missing

Ruby on Rails 3.0.20

Since v2.2.3 Last seen in v3.0.20

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

self.method_missing(method, *arguments, &block)

No documentation comment.

Parameters

method req
arguments rest
block block
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close