Class: Toller::Filters::ScopeHandler
- Inherits:
-
Object
- Object
- Toller::Filters::ScopeHandler
- Defined in:
- lib/toller/filters/scope_handler.rb
Overview
Scope handler for filter
Instance Method Summary collapse
Instance Method Details
#call(collection, value, properties) ⇒ Object
9 10 11 12 13 |
# File 'lib/toller/filters/scope_handler.rb', line 9 def call(collection, value, properties) scoped_name = properties[:scope_name] || properties[:field] collection.public_send(scoped_name, value) end |