Sha256: 8df90a597e122b0c64cf8b116962489aac96dd2e3e546f9a1f3bec670cae449f
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
module MaterializePagination module ViewHelpers # Change the default link renderer for will_paginate 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
will_paginate-materialize-1.0.0 | lib/materialize_pagination/view_helpers.rb |
will_paginate-materialize-0.1.2 | lib/materialize_pagination/view_helpers.rb |