public
Description: Natural-looking Finder Queries for ActiveRecord
Homepage: http://www.thoughtbot.com/projects/squirrel
Clone URL: git://github.com/thoughtbot/squirrel.git
Preventative measures on hoptoad_notifier and squirrel

git-svn-id: https://svn.thoughtbot.com/plugins/squirrel/trunk@413 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
jyurek (author)
Wed Mar 26 14:26:41 -0700 2008
commit  925c4f17b2b25de8aa5386099d9a074112a82204
tree    33c12c373106127ba67dc1f430e775956a5fd825
parent  1d036bd1e05dea1dce06d1bb52a013a0f01a3a4b
...
18
19
20
21
22
23
24
25
 
 
 
 
26
27
28
...
18
19
20
 
 
 
 
 
21
22
23
24
25
26
27
0
@@ -18,11 +18,10 @@ module Squirrel
0
     end
0
 
0
     def self.included base
0
- unless base.instance_methods.include? 'find_without_squirrel'
0
- base.class_eval do
0
- alias_method :find_without_squirrel, :find
0
- alias_method :find, :find_with_squirrel
0
- end
0
+ return if base.instance_methods.include? 'find_without_squirrel'
0
+ base.class_eval do
0
+ alias_method :find_without_squirrel, :find
0
+ alias_method :find, :find_with_squirrel
0
       end
0
     end
0
   end

Comments

    No one has commented yet.