aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-04-23 18:59:35 -0300
committerEmilio Tagua <miloops@gmail.com>2009-04-23 18:59:35 -0300
commite428c75d2b67c6a7bd5f5e7e1719cdece84d497f (patch)
treef381dde20609eef629bb888bebb9a1a40f7b2791 /activerecord/lib
parent7958308ef66aece2d24ab1b884f4facb4751da70 (diff)
downloadrails-e428c75d2b67c6a7bd5f5e7e1719cdece84d497f.tar.gz
rails-e428c75d2b67c6a7bd5f5e7e1719cdece84d497f.tar.bz2
rails-e428c75d2b67c6a7bd5f5e7e1719cdece84d497f.zip
Remove connection method definition, since it's called just once.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/migration.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index c8db31700b..aa9e9e8fdd 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -338,10 +338,6 @@ module ActiveRecord
self.verbose = save
end
- def connection
- ActiveRecord::Base.connection
- end
-
def method_missing(method, *arguments, &block)
arg_list = arguments.map(&:inspect) * ', '
@@ -349,7 +345,7 @@ module ActiveRecord
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