subset_validator 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -0
- data/VERSION +1 -1
- data/subset_validator.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
|
@@ -27,6 +27,7 @@ You probably want your model to prevent arbitrary roles from being assigned. Eg:
|
|
|
27
27
|
One solution is to write a custom setter method that checks if each element of the _roles_ array is contained in <i>@@valid_roles</i> . That's a pain in the ass, especially if you need to do it more than once.
|
|
28
28
|
|
|
29
29
|
Enter SubsetValidator:
|
|
30
|
+
require 'active_model'
|
|
30
31
|
require 'subset_validator'
|
|
31
32
|
|
|
32
33
|
class User
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.2
|
data/subset_validator.gemspec
CHANGED
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 3
|
|
8
|
-
-
|
|
9
|
-
version: 0.3.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.3.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Nick Hoffman
|
|
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
173
173
|
requirements:
|
|
174
174
|
- - ">="
|
|
175
175
|
- !ruby/object:Gem::Version
|
|
176
|
-
hash:
|
|
176
|
+
hash: -705150111
|
|
177
177
|
segments:
|
|
178
178
|
- 0
|
|
179
179
|
version: "0"
|