public
Description: simple identity map for active record. eager loading associations FTL
Clone URL: git://github.com/technoweenie/active_record_context.git
Click here to lend your support to: active_record_context and make a donation at www.pledgie.com !
add #destroy support

git-svn-id: 
http://svn.techno-weenie.net/projects/plugins/active_record_context@3040 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Fri Nov 23 12:29:46 -0800 2007
commit  65ba031b72c445e6e382faa93277fbf5bc71132b
tree    61820bc4810a723653a5ccc20ab3ed62a53c3981
parent  53307381cc6ae0ce3a4783ea732570bfaa9fe3c8
...
3
4
5
 
6
7
8
...
73
74
75
 
 
 
 
 
76
77
78
...
3
4
5
6
7
8
9
...
74
75
76
77
78
79
80
81
82
83
84
0
@@ -3,6 +3,7 @@ module Technoweenie
0
     def self.included(base)
0
       base.extend ClassMethods
0
       base.alias_method_chain :reload, :context
0
+ base.alias_method_chain :destroy_without_callbacks, :context
0
       base.cattr_accessor :context_cache
0
     end
0
 
0
@@ -73,5 +74,10 @@ module Technoweenie
0
       self.class.cached[id.to_i] = nil
0
       reload_without_context(options)
0
     end
0
+
0
+ def destroy_without_callbacks_with_context
0
+ self.class.cached[id.to_i] = nil
0
+ destroy_without_callbacks_without_context
0
+ end
0
   end
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.