diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-08-10 17:42:48 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-08-10 23:28:08 +0100 |
commit | 6e57d5c5840716b63851f02a6a806ba968065bca (patch) | |
tree | 241f62b761113c87ea03f81fa33373e8f5c74ac3 /activerecord/test/support | |
parent | 5b3bb61f3fb82c7300d4dac374fe7aeafff6bda0 (diff) | |
download | rails-6e57d5c5840716b63851f02a6a806ba968065bca.tar.gz rails-6e57d5c5840716b63851f02a6a806ba968065bca.tar.bz2 rails-6e57d5c5840716b63851f02a6a806ba968065bca.zip |
Use method compilation for association methods
Method compilation provides better performance and I think the code
comes out cleaner as well.
A knock on effect is that methods that get redefined produce warnings. I
think this is a good thing. I had to deal with a bunch of warnings
coming from our tests, though.
Diffstat (limited to 'activerecord/test/support')
-rw-r--r-- | activerecord/test/support/connection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/support/connection.rb b/activerecord/test/support/connection.rb index c176316a05..92736e0ca9 100644 --- a/activerecord/test/support/connection.rb +++ b/activerecord/test/support/connection.rb @@ -1,6 +1,6 @@ require 'active_support/logger' -require_dependency 'models/college' -require_dependency 'models/course' +require 'models/college' +require 'models/course' module ARTest def self.connection_name |