public
Description: An activerecord based RBAC permissions system.
Clone URL: git://github.com/NoamB/acts_as_permissible.git
Click here to lend your support to: acts_as_permissible and make a donation at www.pledgie.com !
update README.
NoamB (author)
Fri May 16 07:14:30 -0700 2008
commit  881e94bf0dab4481b4805ae4454bde4b1e07d707
tree    11e982c68ed9ef717d2f0c90211cff75aae46911
parent  848efb78407d25c8b41c11229c10fab41071ed35
0
...
1
2
3
 
 
 
 
 
4
5
6
...
59
60
61
62
63
64
65
66
67
68
69
 
70
...
1
2
3
4
5
6
7
8
9
10
11
...
64
65
66
 
 
67
 
 
 
 
68
69
70
0
@@ -1,6 +1,11 @@
0
 ActsAsPermissible
0
 =================
0
 
0
+Source:
0
+http://github.com/NoamB/acts_as_permissible/tree/master
0
+More information at:
0
+http://github.com/NoamB/acts_as_permissible/wikis
0
+
0
 This plugin enables any activerecord model to have permissions.
0
 It provides a set of methods for querying the model's permissions.
0
 In addition, the plugin can generate roles support, which turns in into a full RBAC (Role Based Access Control) solution.
0
@@ -59,10 +64,5 @@ And with roles support:
0
   @user.in_role?("publisher","advertiser") # => false
0
   @user.in_any_role?("publisher","advertiser") => true
0
   @user.full_permissions_hash() # will return a merged hash of user and roles permissions.
0
-
0
-Copyright (c) 2008 Noam Ben-Ari, released under the MIT license
0
 
0
-
0
- TODO:
0
- # acts_as_permissible_system that includes controller stuff like before_filters.
0
- # admin interface scaffold for permissions and roles.
0
\ No newline at end of file
0
+Copyright (c) 2008 Noam Ben-Ari, released under the MIT license
0
\ No newline at end of file
...
43
44
45
46
47
 
 
48
49
50
...
43
44
45
 
 
46
47
48
49
50
0
@@ -43,8 +43,8 @@ class PermissibleGenerator < Rails::Generator::NamedBase
0
                   File.join('lib',
0
                             "acts_as_permissible.rb")
0
       # m.template 'initializer.rb',
0
- # File.join('config/initializers',
0
- # "acts_as_permissible_init.rb")
0
+ # File.join('config/initializers',
0
+ # "acts_as_permissible_init.rb")
0
       unless options[:skip_roles]
0
         m.template 'role_model.rb',
0
                     File.join('app/models',

Comments

    No one has commented yet.