sunspot_association 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sunspot_association (0.2.0)
4
+ sunspot_association (0.2.1)
5
5
  activerecord (~> 3.0)
6
6
  sunspot_rails
7
7
 
data/README.md CHANGED
@@ -31,7 +31,7 @@ It will also hook into `Company` and watch it for changes
31
31
  Add to your Gemfile:
32
32
 
33
33
  ```ruby
34
- gem 'sunspot_association', '~> 0.2.0'
34
+ gem 'sunspot_association', '~> 0.2.1'
35
35
  ```
36
36
 
37
37
  ## Example
@@ -33,7 +33,7 @@ module SunspotAssociation
33
33
  fields.each do |field|
34
34
  name = [association_name, field].join('_')
35
35
  self.send(type, name, options) do
36
- self.send(association_name).send(field)
36
+ self.send(association_name).try(field)
37
37
  end
38
38
  end
39
39
 
@@ -1,3 +1,3 @@
1
1
  module SunspotAssociation
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot_association
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-11 00:00:00.000000000 Z
12
+ date: 2013-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -159,12 +159,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  - - ! '>='
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
+ segments:
163
+ - 0
164
+ hash: 262027636321384808
162
165
  required_rubygems_version: !ruby/object:Gem::Requirement
163
166
  none: false
164
167
  requirements:
165
168
  - - ! '>='
166
169
  - !ruby/object:Gem::Version
167
170
  version: '0'
171
+ segments:
172
+ - 0
173
+ hash: 262027636321384808
168
174
  requirements: []
169
175
  rubyforge_project:
170
176
  rubygems_version: 1.8.24
@@ -176,4 +182,3 @@ test_files:
176
182
  - spec/sunspot_association/model_spec.rb
177
183
  - spec/sunspot_association/searchable_spec.rb
178
184
  - spec/sunspot_association_spec.rb
179
- has_rdoc: