Class: Wallaby::ServicerFinder

Inherits:
ControllerFinder show all
Defined in:
lib/services/wallaby/servicer_finder.rb

Direct Known Subclasses

PaginatorFinder

Instance Attribute Summary

Attributes inherited from ClassFinder

#current_controller_class, #model_class, #script_name

Instance Method Summary collapse

Instance Method Details

#executeClass

Find servicer class by script name and model class from the following places:

Returns:

  • (Class)

    servicer class



18
19
20
21
22
# File 'lib/services/wallaby/servicer_finder.rb', line 18

def execute
  current_controller_class.model_servicer ||
    possible_default_class ||
    current_controller_class.application_servicer
end