faceted 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.7
1
+ 0.4.8
data/faceted.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "faceted"
8
- s.version = "0.4.7"
8
+ s.version = "0.4.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Ehmke", "Max Thom Stahl"]
@@ -27,7 +27,7 @@ module Faceted
27
27
  else
28
28
  klass = eval "::#{presented_class}"
29
29
  define_method :"#{presented_class}" do
30
- klass.new(:id => self.send(field))
30
+ klass.new(:id => self.id)
31
31
  end
32
32
  end
33
33
  end
@@ -44,7 +44,7 @@ module Faceted
44
44
  instance_variable_set("@#{name}", val)
45
45
  end
46
46
 
47
- build_association_from(name.to_s) if name.to_s.include?("_id") && ! args[:skip_association]
47
+ build_association_from(name.to_s) if name.to_s.include?("id") && ! args[:skip_association]
48
48
 
49
49
  end
50
50
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faceted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
180
- hash: 3466143328770104920
180
+ hash: -4397709336735255197
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements: