property_sets 3.1.1 → 3.2.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: '041694ecf1e21cebc0ad93a9e3daef8c0b2ccde3'
4
- data.tar.gz: bb248f28d0d27497d6a5a9a1cff5015590caafcf
3
+ metadata.gz: 134127c6fe25e414f1a4ef232fbe02621f57ebf3
4
+ data.tar.gz: 0213442aa7d5601e00d5bebe25a8691487758346
5
5
  SHA512:
6
- metadata.gz: 456e570e7874ab075dafc57c28cb5a7a6f5234efebb7a25d2f920b0a17a63ec843d8c5c6d7e9b195fa660300d72c64eb1f21a177ca5be6012f99c7a6ab552dba
7
- data.tar.gz: 749e97322ecdabc41dba4aa750349aaa79ee1e1a0408ac65ffca37b1e1c1d63571ed1f3226a91a69348cfa369126908f26a6965aa95c9c71841644890e445f59
6
+ metadata.gz: 22e5bf52ab66ab035c58bd60064ef3dbc2884800041bffaecc9f6afbfadc8c1a0d9e0ef7002695d1efc0f47d966a36d58a0256a55369a1bc7862d9ec4e3013a7
7
+ data.tar.gz: 3f1f687cd665eb5387c52bb21ee21c987eb8be86caea5a354b23e5f1c5a79b8774c6efafd1b6e493ca130db3ebaa8a99731415ddac897046c31a2fc6d24fcc88
@@ -28,6 +28,7 @@ module PropertySets
28
28
 
29
29
  define_method("#{old_attr}_changed?") do
30
30
  assoc = send(setname)
31
+ return false unless assoc.loaded?
31
32
  setting = assoc.lookup_without_default(new_attr)
32
33
 
33
34
  if !setting
@@ -1,3 +1,3 @@
1
1
  module PropertySets
2
- VERSION = "3.1.1"
2
+ VERSION = "3.2.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: 3.1.1
4
+ version: 3.2.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: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -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.5.2
165
+ rubygems_version: 2.5.1
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: Property sets for ActiveRecord.