Permalink
Browse files

Remove connection method definition, since it's called just once.

  • Loading branch information...
1 parent 7958308 commit e428c75d2b67c6a7bd5f5e7e1719cdece84d497f @miloops miloops committed Apr 23, 2009
Showing with 1 addition and 5 deletions.
  1. +1 −5 activerecord/lib/active_record/migration.rb
@@ -338,18 +338,14 @@ def suppress_messages
self.verbose = save
end
- def connection
- ActiveRecord::Base.connection
- end
-
def method_missing(method, *arguments, &block)
arg_list = arguments.map(&: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)
+ Base.connection.send(method, *arguments, &block)
end
end
end

0 comments on commit e428c75

Please sign in to comment.