property_sets 3.2.0 → 3.2.1
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 +2 -1
- data/lib/property_sets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537a0d1bb242604cbcc56a1ca36e470f2a6b801e
|
4
|
+
data.tar.gz: d845adb423d5ce5607217b1cbf8410fbb7e15680
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8f469c438491d9b2670fe1553067db729960de8b5560be99ef16f0acb49acd10ea0bf84381170f3d25be47f702fb326d186c92f41c1b6bd59379868f21f17ff
|
7
|
+
data.tar.gz: ecd439b869a49c327efa2f358bccdd1fd4f24b49a45ecbd6275c421d84bb6168450cef26fc8c4ee2f85903a6a8ef4ec1fc5cc19faac94800b3bfced04fd01e75
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'active_record'
|
2
2
|
require 'property_sets/casting'
|
3
|
+
require 'set'
|
3
4
|
|
4
5
|
module PropertySets
|
5
6
|
module ActiveRecordExtension
|
@@ -9,7 +10,7 @@ module PropertySets
|
|
9
10
|
unless include?(PropertySets::ActiveRecordExtension::InstanceMethods)
|
10
11
|
self.send(:prepend, PropertySets::ActiveRecordExtension::InstanceMethods)
|
11
12
|
cattr_accessor :property_set_index
|
12
|
-
self.property_set_index =
|
13
|
+
self.property_set_index = Set.new
|
13
14
|
end
|
14
15
|
|
15
16
|
raise "Invalid association name, letters only" unless association.to_s =~ /[a-z]+/
|
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.2.
|
4
|
+
version: 3.2.1
|
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-
|
11
|
+
date: 2017-11-10 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.1
|
165
|
+
rubygems_version: 2.4.5.1
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Property sets for ActiveRecord.
|