module Grasshopper::Paginate::Helper

Public Instance Methods

grasshopper_paginate(pages, options={}) click to toggle source
# File lib/grasshopper_paginate/helper.rb, line 4
def grasshopper_paginate(pages, options={})
  will_paginate pages, options.merge(default_options)
end

Private Instance Methods

default_options() click to toggle source
# File lib/grasshopper_paginate/helper.rb, line 10
def default_options
  { 
          :inner_window => 1,
    :outer_window => 0,
    :renderer => Grasshopper::Paginate::Renderer,
    :previous_label => '«'.html_safe,
    :next_label => '»'.html_safe
  }
end