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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 641d909cf1bc2d7663f6cc8e9a5567ee1a706a92
4
- data.tar.gz: 87a95b724364858817d3856b58084e1ed5c000c7
3
+ metadata.gz: 84580dd50e10da2429b74e4331d85056f1a43590
4
+ data.tar.gz: 9c6d2130e0394cc0d30783e5bc4afc59edf36941
5
5
  SHA512:
6
- metadata.gz: f15a55aadc3538b64229ae9bfef5ff4f5fd453f05d2893e1965bd6133da6326aa1abc2ed90a75872d84db7e0f26e7e3d0012a7a31d471b0a9f8b438ef4900940
7
- data.tar.gz: 4c5bfba5e257a0ff60c5257278f6d873b8055d29bb5b193b3370f174534add6cf55aad0f846259b3ab64e4f1457344720277b7289404dc9626d5f66dc8bde6d1
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(:include, PropertySets::ActiveRecordExtension::InstanceMethods)
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 self.included(base)
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
- update_attributes_without_property_sets(attributes)
173
+ super
179
174
  end
180
175
 
181
- def update_attributes_with_property_sets!(attributes)
176
+ def update_attributes!(attributes)
182
177
  update_property_set_attributes(attributes)
183
- update_attributes_without_property_sets!(attributes)
178
+ super
184
179
  end
185
180
 
186
181
  def update_property_set_attributes(attributes)
@@ -1,3 +1,3 @@
1
1
  module PropertySets
2
- VERSION = "2.10.0"
2
+ VERSION = "3.0.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.10.0
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-08-17 00:00:00.000000000 Z
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: '4.3'
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: '4.3'
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.2.2
179
+ rubygems_version: 2.4.5.1
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Property sets for ActiveRecord.