search for: infer_collection_from_control

Displaying 1 result from an estimated 1 matches for "infer_collection_from_control".

2012 Feb 09
0
how to rename a method of a module.
...iew'' module WillPaginate module ActionView def 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_pagin...