activeadmin-cancan 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/lib/activeadmin-cancan/version.rb +1 -1
- metadata +7 -7
data/README.rdoc
CHANGED
@@ -31,6 +31,10 @@ If the user authorization fails, a <tt>CanCan::AccessDenied</tt> exception will
|
|
31
31
|
rescue_from CanCan::AccessDenied do |exception|
|
32
32
|
redirect_to root_url, :alert => exception.message
|
33
33
|
end
|
34
|
+
|
35
|
+
def current_ability
|
36
|
+
@current_ability ||= Ability.new(current_admin_user)
|
37
|
+
end
|
34
38
|
end
|
35
39
|
|
36
40
|
See CanCan page [https://github.com/ryanb/cancan/wiki/exception-handling] for more information.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-cancan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-01 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70325817408620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70325817408620
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: cancan
|
27
|
-
requirement: &
|
27
|
+
requirement: &70325817408120 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.6.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70325817408120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: activeadmin
|
38
|
-
requirement: &
|
38
|
+
requirement: &70325817407660 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.4.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70325817407660
|
47
47
|
description: Provides CanCan roles to ActiveAdmin
|
48
48
|
email:
|
49
49
|
- laurent@11factory.fr
|