authoritah 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/authoritah.rb +2 -2
- metadata +33 -4
data/lib/authoritah.rb
CHANGED
@@ -30,8 +30,8 @@ module Authoritah
|
|
30
30
|
|
31
31
|
check_role_selectors(options)
|
32
32
|
|
33
|
-
role_method = options.first[0]
|
34
|
-
role_predicate = options.first[1]
|
33
|
+
role_method = options.to_a.first[0]
|
34
|
+
role_predicate = options.to_a.first[1]
|
35
35
|
|
36
36
|
controller_permissions[controller_name.to_sym] ||= PermissionSet.new
|
37
37
|
controller_permissions[controller_name.to_sym] <<
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authoritah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Mohapi-Banks
|
@@ -11,9 +11,38 @@ cert_chain: []
|
|
11
11
|
|
12
12
|
date: 2009-09-28 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.2.8
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec-rails
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.2.7.1
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: mocha
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.9.8
|
44
|
+
version:
|
45
|
+
description: A description of a really simple authorization plugin for Rails.
|
17
46
|
email: steven.mohapibanks@me.com
|
18
47
|
executables: []
|
19
48
|
|