Class: Ambition::Context
- Inherits:
-
Object
- Object
- Ambition::Context
- Defined in:
- lib/ambition/adapters/active_record/context.rb
Instance Method Summary collapse
- #count(*args) ⇒ Object (also: #size)
- #count_with_deleted(*args) ⇒ Object
- #find(*args) ⇒ Object
- #find_with_deleted(*args) ⇒ Object
Instance Method Details
#count(*args) ⇒ Object Also known as: size
11 12 13 |
# File 'lib/ambition/adapters/active_record/context.rb', line 11 def count *args with_context_scope(to_hash) { owner.count *args } end |
#count_with_deleted(*args) ⇒ Object
16 17 18 |
# File 'lib/ambition/adapters/active_record/context.rb', line 16 def count_with_deleted *args with_context_scope(to_hash) { owner.count_with_deleted *args } end |
#find(*args) ⇒ Object
4 5 6 |
# File 'lib/ambition/adapters/active_record/context.rb', line 4 def find *args with_context_scope(to_hash) { owner.find *args } end |
#find_with_deleted(*args) ⇒ Object
7 8 9 |
# File 'lib/ambition/adapters/active_record/context.rb', line 7 def find_with_deleted *args with_context_scope(to_hash) { owner.find_with_deleted *args } end |