sso-auth 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sso-auth/engine.rb +1 -1
- data/lib/sso-auth/version.rb +1 -1
- metadata +3 -3
data/lib/sso-auth/engine.rb
CHANGED
@@ -86,7 +86,7 @@ module SsoAuth
|
|
86
86
|
belongs_to :context, :polymorphic => true
|
87
87
|
belongs_to :user
|
88
88
|
|
89
|
-
validates_inclusion_of :role, :in => available_roles
|
89
|
+
validates_inclusion_of :role, :in => available_roles + available_roles.map(&:to_sym)
|
90
90
|
validates_presence_of :role, :user
|
91
91
|
validates_uniqueness_of :role, :scope => [:user_id, :context_id, :context_type]
|
92
92
|
|
data/lib/sso-auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sso-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -216,7 +216,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
segments:
|
218
218
|
- 0
|
219
|
-
hash:
|
219
|
+
hash: 2989266843877059393
|
220
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
221
|
none: false
|
222
222
|
requirements:
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
segments:
|
227
227
|
- 0
|
228
|
-
hash:
|
228
|
+
hash: 2989266843877059393
|
229
229
|
requirements: []
|
230
230
|
rubyforge_project:
|
231
231
|
rubygems_version: 1.8.24
|