Class: Kaminari::Helpers::PaginationRenderer
- Inherits:
-
Object
- Object
- Kaminari::Helpers::PaginationRenderer
- Defined in:
- lib/kaminari/helpers/helpers.rb
Overview
The main class that controlls the whole process
Instance Method Summary collapse
-
#initialize(template, options) ⇒ PaginationRenderer
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(template, options) ⇒ PaginationRenderer
:nodoc:
38 39 40 41 42 43 44 45 46 |
# File 'lib/kaminari/helpers/helpers.rb', line 38 def initialize(template, ) #:nodoc: @window_options = {}.tap do |h| h[:window] = .delete(:window) || .delete(:inner_window) || 4 outer_window = .delete(:outer_window) h[:left] = .delete(:left) || outer_window || 1 h[:right] = .delete(:right) || outer_window || 1 end @template = TemplateWrapper.new(template, ) end |