property_sets 3.3.1 → 3.4.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f4adbd4a6e5648ea09c07f3c918edafdd15ed92bd5fb1b465fde7746d052e265
|
4
|
+
data.tar.gz: 8939ce9a79e6d13614760e29d605e6225b9ffce09fdd4856d20345de3fe06b85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 561dbe595c2cb2f12d21ba70234c1cdfa0f4e9bfcaffa360d12b89e59891b342c10c80ddec6485f5efa63b51b181d5397f9abbbc32062922eec5dd8d0f8175c3
|
7
|
+
data.tar.gz: 24dff7a83adec282ea69016a4657f084d77b56afa801e44b31bb7eb925f97f5e15d8c8b86dfe8a75e151ee0349a1cfd64049e9c248f6ed71918be66fa24f421c
|
@@ -158,13 +158,7 @@ module PropertySets
|
|
158
158
|
end
|
159
159
|
|
160
160
|
def association_class
|
161
|
-
@association_class ||=
|
162
|
-
if ActiveRecord::VERSION::STRING >= "3.1.0"
|
163
|
-
proxy_association.klass
|
164
|
-
else
|
165
|
-
@reflection.klass
|
166
|
-
end
|
167
|
-
end
|
161
|
+
@association_class ||= proxy_association.klass
|
168
162
|
end
|
169
163
|
end
|
170
164
|
|
@@ -105,7 +105,7 @@ module PropertySets
|
|
105
105
|
base.validate :validate_format_of_name
|
106
106
|
base.validate :validate_length_of_serialized_data
|
107
107
|
base.before_create :coerce_value
|
108
|
-
base.attr_accessible :name, :value if
|
108
|
+
base.attr_accessible :name, :value if defined?(ProtectedAttributes)
|
109
109
|
end
|
110
110
|
|
111
111
|
def property(key, options = nil)
|
@@ -138,7 +138,7 @@ module PropertySets
|
|
138
138
|
belongs_to owner_class_sym
|
139
139
|
validates_presence_of owner_class_sym
|
140
140
|
validates_uniqueness_of :name, :scope => owner_class_key_sym
|
141
|
-
attr_accessible owner_class_key_sym, owner_class_sym if
|
141
|
+
attr_accessible owner_class_key_sym, owner_class_sym if defined?(ProtectedAttributes)
|
142
142
|
end
|
143
143
|
|
144
144
|
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: 3.
|
4
|
+
version: 3.4.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: 2018-
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '6.0'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '4.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6.0'
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.6
|
165
|
+
rubygems_version: 2.7.6
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Property sets for ActiveRecord.
|