README in ar-simple-idmap-0.2.2 vs README in ar-simple-idmap-0.2.4
- old
+ new
@@ -1,23 +1,20 @@
-IdentityMap
-===========
+= IdentityMap
Adds simple hand controlled identity map for ActiveRecord.
-Installing
-==========
+== Installing
in Rails 2.3 in config/environment.rb
config.gem 'ar-simple-idmap', :lib => 'identity_map'
in Rails 3 in Gemfile
gem 'ar-simple-idmap', :require => 'identity_map'
-Enabling
-========
+== Enabling
To enable in ApplicationController (it is not enabled by default).
class ApplicationController < ActionController::Base
use_identity_map #(installs around filter)
@@ -71,12 +68,19 @@
Client.without_id_map do
# all things here goes without identity map
# not only for Client
end
+
+ class ClientsController
+ def strange_action
+ without_identity_map do
+ do_strange_things_without_identity_map
+ end
+ end
+ end
-Copyright
-=========
+== Copyright
inspired by http://github.com/pjdavis/identity-map
Copyright (c) 2010 Sokolov Yura aka funny_falcon, released under the MIT license.