Method: ZableHelper#set_page_size_path
- Defined in:
- app/helpers/zable_helper.rb
#set_page_size_path(page_size = nil) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'app/helpers/zable_helper.rb', line 26 def set_page_size_path(page_size = nil) page_params = if page_size { :page => {:size => page_size, :num => 1} } else { :page => {:size => 'all'} } end current_path_with_params(params.slice(:sort, :search), page_params) end |