Class: Manage::ResourceController

Inherits:
ApplicationController show all
Defined in:
app/controllers/manage/resource_controller.rb

Direct Known Subclasses

AdminUsersController

Instance Method Summary collapse

Methods inherited from ApplicationController

#auth_user!, #current_user

Instance Method Details

#end_of_association_chainObject



17
18
19
20
21
22
23
24
25
26
# File 'app/controllers/manage/resource_controller.rb', line 17

def end_of_association_chain
  if self.resources_configuration[:self][:search_fields].blank?
    self.class.search_fields :all
  end

  config = self.resources_configuration[:self]
  @search = config[:search].new(clean_search_params(params[:f]))

  @search.results
end