Module: ActiveCollection::Scope::ClassMethods
- Defined in:
- lib/active_collection/scope.rb,
lib/active_collection/new_scope.rb
Instance Method Summary collapse
- #scope_for_count ⇒ Object
- #scope_for_find ⇒ Object
- #scopes_for_count ⇒ Object
- #scopes_for_find ⇒ Object
Instance Method Details
#scope_for_count ⇒ Object
50 51 52 |
# File 'lib/active_collection/scope.rb', line 50 def scope_for_count ScopeBuilder.new(scope_builder + count_scope_builder) end |
#scope_for_find ⇒ Object
46 47 48 |
# File 'lib/active_collection/scope.rb', line 46 def scope_for_find ScopeBuilder.new(scope_builder + find_scope_builder) end |
#scopes_for_count ⇒ Object
51 52 53 |
# File 'lib/active_collection/new_scope.rb', line 51 def scopes_for_count ScopeBuilder.new(scope_builder + count_scope_builder) end |
#scopes_for_find ⇒ Object
47 48 49 |
# File 'lib/active_collection/new_scope.rb', line 47 def scopes_for_find ScopeBuilder.new(scope_builder + find_scope_builder) end |