aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-10-15 15:17:25 -0300
committerEmilio Tagua <miloops@gmail.com>2010-11-19 19:08:55 -0300
commit3a34ae04bdf5e0badc85daef5f204d02688f193d (patch)
tree53afeca2c048df0dae45c4016f6b2f252eed9e85
parentd13df4c6c44a93a3d51d9e6981d69de71f2e4024 (diff)
downloadrails-3a34ae04bdf5e0badc85daef5f204d02688f193d.tar.gz
rails-3a34ae04bdf5e0badc85daef5f204d02688f193d.tar.bz2
rails-3a34ae04bdf5e0badc85daef5f204d02688f193d.zip
Change API name, we don't need any param.
-rw-r--r--activerecord/lib/active_record/identity_map.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/identity_map.rb b/activerecord/lib/active_record/identity_map.rb
index 69b512a5c6..cca4198c69 100644
--- a/activerecord/lib/active_record/identity_map.rb
+++ b/activerecord/lib/active_record/identity_map.rb
@@ -26,7 +26,7 @@ module ActiveRecord
Thread.current[:identity_map] ||= Hash.new { |h,k| h[k] = ActiveSupport::WeakHash.new }
end
- def with_repository(name = :default)
+ def use
yield if block_given?
end