Displaying 1 result from an estimated 1 matches for "bootstraplinkrenderer".
2012 Feb 09
0
how to rename a method of a module.
...will_paginate(collection = nil, options = {})
options, 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
options[:renderer] ||= BootstrapLinkRenderer
super.try :html_safe
end
.............
So when I call will_paginate it''s rendered using BootstrapLinkRenderer.
I want to rename the method name will_paginate in, for example
bootstrap-will_paginate, so that I can use will_paginate with its own
render and bootstrap-will_paginate w...