property_sets 2.9.1 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b9272079407a93ecac8eae1b7f2989ef8c6c3fb
4
- data.tar.gz: 5422519ad1eee2e4330b75338b5e6a703e058c1b
3
+ metadata.gz: 641d909cf1bc2d7663f6cc8e9a5567ee1a706a92
4
+ data.tar.gz: 87a95b724364858817d3856b58084e1ed5c000c7
5
5
  SHA512:
6
- metadata.gz: 6553ba03d39d3b7095733618116e925bd9d9949cd76de98232a852230d070ca85a51bfdb310fe6e2d56f6550e118f8e94aedc6e5a10ef6e1f69ea2964656f5b2
7
- data.tar.gz: 5f2f8e880c76fdc9c7546b4973d1d55c7fcaa6c93bf35e7d3036e242a0056b4420addbe76d1293e451865b83053450c20fa3562ba78004a4d3d07a6fc11b20a5
6
+ metadata.gz: f15a55aadc3538b64229ae9bfef5ff4f5fd453f05d2893e1965bd6133da6326aa1abc2ed90a75872d84db7e0f26e7e3d0012a7a31d471b0a9f8b438ef4900940
7
+ data.tar.gz: 4c5bfba5e257a0ff60c5257278f6d873b8055d29bb5b193b3370f174534add6cf55aad0f846259b3ab64e4f1457344720277b7289404dc9626d5f66dc8bde6d1
@@ -87,7 +87,7 @@ module PropertySets
87
87
  base.validate :validate_format_of_name
88
88
  base.validate :validate_length_of_serialized_data
89
89
  base.before_create :coerce_value
90
- base.attr_accessible :name, :value
90
+ base.attr_accessible :name, :value if ActiveRecord::VERSION::MAJOR == 3 || defined?(ProtectedAttributes)
91
91
  end
92
92
 
93
93
  def property(key, options = nil)
@@ -120,7 +120,7 @@ module PropertySets
120
120
  belongs_to owner_class_sym
121
121
  validates_presence_of owner_class_sym
122
122
  validates_uniqueness_of :name, :scope => owner_class_key_sym
123
- attr_accessible owner_class_key_sym, owner_class_sym
123
+ attr_accessible owner_class_key_sym, owner_class_sym if ActiveRecord::VERSION::MAJOR == 3 || defined?(ProtectedAttributes)
124
124
  end
125
125
 
126
126
  def owner_assoc=(association)
@@ -1,3 +1,3 @@
1
1
  module PropertySets
2
- VERSION = "2.9.1"
2
+ VERSION = "2.10.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: property_sets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morten Primdahl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord