has_finder 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -1
- data/lib/has_finder/has_finder.rb +1 -1
- data/lib/has_finder/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module HasFinder
|
2
2
|
class FinderProxy
|
3
3
|
attr_reader :proxy_finder, :proxy_scope
|
4
|
-
[].methods.each { |m| delegate m, :to => :proxy_found unless m =~ /(^__|^nil\?|^send|class|extend|find|paginate)/ }
|
4
|
+
[].methods.each { |m| delegate m, :to => :proxy_found unless m =~ /(^__|^nil\?|^send|class|extend|find|count|sum|average|maximum|minimum|paginate)/ }
|
5
5
|
delegate :finders, :with_scope, :to => :proxy_finder
|
6
6
|
|
7
7
|
def initialize(proxy_finder, options, &block)
|
data/lib/has_finder/version.rb
CHANGED