filterrific 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ ### 1.0.1
2
+
3
+ * Bug fix: Replaced stringify_keys with map.to_s (scope_names is an Array, not a Hash!)
4
+
1
5
  # 1.0.0
2
6
 
3
7
  * Support for Rails 3.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{filterrific}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jo Hund"]
@@ -18,7 +18,7 @@ module Filterrific::ModelMixin
18
18
  cattr_accessor :default_filterrific_params
19
19
  cattr_accessor :filterrific_scope_names
20
20
  self.default_filterrific_params = (options[:defaults] || {}).stringify_keys
21
- self.filterrific_scope_names = (options[:scope_names] || []).stringify_keys
21
+ self.filterrific_scope_names = (options[:scope_names] || []).map { |e| e.to_s }
22
22
  end
23
23
 
24
24
  # Returns AR relation based on given filterrific_param_set.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filterrific
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jo Hund