Class: Yaqb::Config
- Inherits:
-
Object
- Object
- Yaqb::Config
- Defined in:
- lib/yaqb/config.rb
Instance Method Summary collapse
Instance Method Details
#paginator ⇒ Object
15 16 17 |
# File 'lib/yaqb/config.rb', line 15 def paginator instance_variable_defined?(:@paginator) ? @paginator : set_paginator end |
#paginator=(paginator) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/yaqb/config.rb', line 19 def paginator=(paginator) case paginator.to_sym when :kaminari @paginator = :kaminari when :will_paginate @paginator = :will_paginate else raise StandardError, (paginator) end end |