forked from patricklindsay/wice_grid
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
27 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
1. The detached filter API has changed. No more magical invocation of the +grid+ helper two times. First, +define_grid+ is used in the same | ||
way as +grid+, then +grid_filter+, and then <tt>render_grid(@grid)</tt> to actually output the grid table . | ||
1. +will_paginate+ is replaced by +kaminari+. | ||
2. The detached filter API has changed. No more magical invocation of the +grid+ helper two times. | ||
First, +define_grid+ is used in the same way as +grid+, then +grid_filter+, | ||
and then <tt>render_grid(@grid)</tt> to actually output the grid table . | ||
3. No more polluting core Ruby classes like Hash and Array with methods. All such methods | ||
are now private to the plugin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# encoding: UTF-8 | ||
# It is here only until this pull request is pulled: https://github.com/amatsuda/kaminari/pull/267 | ||
module Kaminari | ||
module Helpers | ||
class Tag | ||
def page_url_for(page) | ||
current_page_params_as_query_string = @param_name.to_s + '=' + (page <= 1 ? nil : page).to_s | ||
current_page_params_as_hash = Rack::Utils.parse_nested_query(current_page_params_as_query_string) | ||
@template.url_for Wice::WgHash.rec_merge(@params, current_page_params_as_hash).symbolize_keys | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters