Module: BootstrapPostPaginateHelper
- Extended by:
- ActiveSupport::Concern
- Includes:
- BootstrapHelper
- Defined in:
- app/helpers/bootstrap_post_paginate_helper.rb
Defined Under Namespace
Classes: PostBootstrapLinkRenderer
Instance Method Summary collapse
Methods included from BootstrapHelper
#div, #javascript_include_tag_with_p, #merge_predef_class
Instance Method Details
#post_will_paginate(collection = nil, options = {}) ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/helpers/bootstrap_post_paginate_helper.rb', line 6 def post_will_paginate(collection=nil, ={}) , collection = collection, nil if collection.is_a? Hash # Taken from original will_paginate code to handle if the helper is not passed a collection object. collection ||= infer_collection_from_controller [:renderer] ||= PostBootstrapLinkRenderer will_paginate(collection, ).try :html_safe end |