acts_as_metadata 0.3.4 → 0.3.5

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acts_as_metadata (0.3.1)
4
+ acts_as_metadata (0.3.4)
5
5
  rails (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -71,7 +71,7 @@ GEM
71
71
  rake (>= 0.8.7)
72
72
  rdoc (~> 3.4)
73
73
  thor (>= 0.14.6, < 2.0)
74
- rake (10.0.1)
74
+ rake (10.0.2)
75
75
  rdoc (3.12)
76
76
  json (~> 1.4)
77
77
  rspec (2.7.0)
@@ -65,7 +65,8 @@ class MetadataType < ActiveRecord::Base
65
65
  end
66
66
 
67
67
  def values= value
68
- self.values = value.is_a?(Hash) ? value.invert.to_a : value
68
+ value = value.invert.to_a if value.is_a?(Hash)
69
+ super
69
70
  end
70
71
 
71
72
  def values_json
@@ -1,3 +1,3 @@
1
1
  module ActsAsMetadata
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: