lockdown 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/lockdown.rb
CHANGED
@@ -5,12 +5,15 @@
|
|
5
5
|
#
|
6
6
|
#*** MUST add call to add_lockdown_session_values to your login method
|
7
7
|
#
|
8
|
-
# # This method uses the current_user method.
|
9
|
-
# add_lockdown_session_values
|
10
|
-
#
|
11
8
|
#*** MAY NEED to add call to reset_lockdown_session to your logout method.
|
12
9
|
# ** Not needed if your authentication system resets the session
|
13
10
|
#
|
11
|
+
# Definitely need to use the user_group and permission models. The lockdown
|
12
|
+
# generator will provide those for you. Just add the following to your user
|
13
|
+
# model:
|
14
|
+
# has_and_belongs_to_many :user_groups
|
15
|
+
#
|
16
|
+
# That's it!
|
14
17
|
#
|
15
18
|
#
|
16
19
|
# ~~~~Method Descriptions~~~~
|