Skip to content

Commit

Permalink
Version bump 1.2.6, URI.decode on cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
potatosalad committed Jan 6, 2012
1 parent e98266c commit 1167dab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
mongoid-data_table (1.2.5)
mongoid-data_table (1.2.6)
kaminari (~> 0.12.4)
rails (>= 3.0.0)

Expand Down Expand Up @@ -45,7 +45,7 @@ GEM
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.0)
json (1.6.3)
json (1.6.4)
kaminari (0.12.4)
rails (>= 3.0.0)
mail (2.3.0)
Expand All @@ -62,7 +62,7 @@ GEM
tzinfo (~> 0.3.22)
multi_json (1.0.4)
polyglot (0.3.3)
rack (1.3.5)
rack (1.3.6)
rack-cache (1.1)
rack (>= 0.4)
rack-mount (0.8.3)
Expand Down
6 changes: 3 additions & 3 deletions lib/mongoid/data_table/proxy.rb
Expand Up @@ -91,15 +91,15 @@ def load_cookie!(sInstance = nil)

def search_fields
return [] if cookie.blank?
hash = []
array = []
begin
cookie['aaSearchCols'].each_with_index do |(value,regex),index|
hash.push(value)
array.push(URI.decode(value.to_s))
end
rescue
# do nothing
end
return hash
return array
end

## pagination options ##
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/data_table/version.rb
@@ -1,5 +1,5 @@
module Mongoid
module DataTable
VERSION = "1.2.5"
VERSION = "1.2.6"
end
end

0 comments on commit 1167dab

Please sign in to comment.