property_sets 2.10.0 → 3.0.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/active_record_extension.rb +5 -10
- data/lib/property_sets/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84580dd50e10da2429b74e4331d85056f1a43590
|
4
|
+
data.tar.gz: 9c6d2130e0394cc0d30783e5bc4afc59edf36941
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1217f63e6258b34921dedf3e9db4f44ab5fe61847fa6f26e605a9334b15e1be53747a0e4ea37fbb150a4879b0bb82e8776f96834606e0a628c9519d4f3703a52
|
7
|
+
data.tar.gz: dedb51b2e0125909e4933db9521f39de6460530f7401d4549147031bb1073e37c5055c115da66c6188989bb1313cbc894acaf78c446689a225f8f3e0e0a4d450
|
@@ -7,7 +7,7 @@ module PropertySets
|
|
7
7
|
|
8
8
|
def property_set(association, options = {}, &block)
|
9
9
|
unless include?(PropertySets::ActiveRecordExtension::InstanceMethods)
|
10
|
-
self.send(:
|
10
|
+
self.send(:prepend, PropertySets::ActiveRecordExtension::InstanceMethods)
|
11
11
|
cattr_accessor :property_set_index
|
12
12
|
self.property_set_index = []
|
13
13
|
end
|
@@ -168,19 +168,14 @@ module PropertySets
|
|
168
168
|
end
|
169
169
|
|
170
170
|
module InstanceMethods
|
171
|
-
def
|
172
|
-
base.alias_method_chain :update_attributes, :property_sets
|
173
|
-
base.alias_method_chain :update_attributes!, :property_sets
|
174
|
-
end
|
175
|
-
|
176
|
-
def update_attributes_with_property_sets(attributes)
|
171
|
+
def update_attributes(attributes)
|
177
172
|
update_property_set_attributes(attributes)
|
178
|
-
|
173
|
+
super
|
179
174
|
end
|
180
175
|
|
181
|
-
def
|
176
|
+
def update_attributes!(attributes)
|
182
177
|
update_property_set_attributes(attributes)
|
183
|
-
|
178
|
+
super
|
184
179
|
end
|
185
180
|
|
186
181
|
def update_property_set_attributes(attributes)
|
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:
|
4
|
+
version: 3.0.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-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.4.5.1
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: Property sets for ActiveRecord.
|