lib/trestle/scopes/scope.rb in trestle-0.9.8 vs lib/trestle/scopes/scope.rb in trestle-0.10.0.pre
- old
+ new
@@ -21,9 +21,13 @@
def default?
@options[:default] == true
end
+ def count?
+ @options[:count] != false
+ end
+
def apply(collection)
if @block
if @block.arity == 1
@admin.instance_exec(collection, &@block)
else