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 +4 -4
- data/lib/property_sets/property_set_model.rb +2 -2
- data/lib/property_sets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 641d909cf1bc2d7663f6cc8e9a5567ee1a706a92
|
4
|
+
data.tar.gz: 87a95b724364858817d3856b58084e1ed5c000c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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-
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|