Class: Wallaby::PaginatorFinder

Inherits:
ServicerFinder show all
Defined in:
lib/services/wallaby/paginator_finder.rb

Instance Attribute Summary

Attributes inherited from ClassFinder

#current_controller_class, #model_class, #script_name

Instance Method Summary collapse

Instance Method Details

#executeClass

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

Returns:

  • (Class)

    paginator class



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

def execute
  current_controller_class.model_paginator ||
    possible_default_class ||
    current_controller_class.application_paginator
end