module MaterializePagination::ViewHelpers

Public Instance Methods

will_paginate(collection_or_options = nil, options = {}) click to toggle source

Change the default link renderer for will_paginate

Calls superclass method
# File lib/materialize_pagination/view_helpers.rb, line 4
def will_paginate(collection_or_options = nil, options = {})
  if collection_or_options.is_a? Hash
    options, collection_or_options = collection_or_options, nil
  end
  unless options[:renderer]
    options = options.merge :renderer => MaterializePagination::Rails
  end
  super *[collection_or_options, options].compact
end