Class: Perilune::Tasks::SearchByTagOperation
- Inherits:
-
SearchOperation
- Object
- LedgerSync::Domains::Operation::Search
- SearchOperation
- Perilune::Tasks::SearchByTagOperation
- Defined in:
- app/operations/perilune/tasks/search_by_tag_operation.rb
Defined Under Namespace
Classes: Contract
Instance Method Summary collapse
Instance Method Details
#resources ⇒ Object
18 19 20 |
# File 'app/operations/perilune/tasks/search_by_tag_operation.rb', line 18 def resources @resources ||= super.where('? = ANY (tags)', params[:tag]) end |
#serializer_for ⇒ Object
22 23 24 |
# File 'app/operations/perilune/tasks/search_by_tag_operation.rb', line 22 def serializer_for(*) Perilune::Tasks::Serializer.new end |