accept_values_for 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/accept_values_for.rb +1 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -35,7 +35,7 @@ class AcceptValuesFor #:nodoc:
35
35
 
36
36
  def matches?(model)
37
37
  @model = model
38
- return false unless model.is_a?(ActiveRecord::Base) && model.has_attribute?(@attribute)
38
+ return false unless model.is_a?(ActiveRecord::Base)
39
39
  @values.each do |value|
40
40
  model[@attribute] = value
41
41
  unless model.valid?
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 0
8
7
  - 1
9
- version: 0.0.1
8
+ - 0
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bogdan Gusiev
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-04 00:00:00 +03:00
17
+ date: 2010-05-05 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies: []
20
20