Module: Trax::Controller::Collection::Searchable

Extended by:
ActiveSupport::Concern
Defined in:
lib/trax/controller/collection/searchable.rb

Instance Method Summary collapse

Instance Method Details

#collection_response_metaObject



11
12
13
# File 'lib/trax/controller/collection/searchable.rb', line 11

def collection_response_meta
  super.merge!(:search_scopes => current_scopes)
end

#search(**options) ⇒ Object



7
8
9
# File 'lib/trax/controller/collection/searchable.rb', line 7

def search(**options)
  index(**options)
end