lockdown 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/lockdown/version.rb +1 -1
- data/website/index.txt +1 -3
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
== 0.4.5 2008-05-08
|
2
|
+
* Rubyforge having an issue with the gem, I'm getting 404 errors trying to install 0.4.4 so I'm deploying a new version. no code changes.
|
3
|
+
|
1
4
|
== 0.4.4 2008-05-08
|
2
5
|
* Modified: refactored the link_to_secured and authorized? code to be more efficient
|
3
6
|
|
data/lib/lockdown/version.rb
CHANGED
data/website/index.txt
CHANGED
@@ -43,8 +43,6 @@ This will install resources such as:
|
|
43
43
|
|
44
44
|
Please refer to the <a href="generator.html">generator page</a> for more detail.
|
45
45
|
|
46
|
-
I recommend reading this page to get a feel for Lockdown's functionality.
|
47
|
-
|
48
46
|
h2. How it works
|
49
47
|
|
50
48
|
Lockdown stores an array of access rights in the session. For example, if you have a standard REST users controller, the access rights would be:
|
@@ -58,7 +56,7 @@ Lockdown stores an array of access rights in the session. For example, if you h
|
|
58
56
|
users/destroy (delete for Merb)
|
59
57
|
</pre>
|
60
58
|
|
61
|
-
The above list will be stored in the session as an array and each request is tested against this list.
|
59
|
+
The above list will be stored in the session as an array and each request is tested against this list.
|
62
60
|
|
63
61
|
To define access rights you need to modify lib/lockdown/init.rb. This is the default init.rb included with Lockdown:
|
64
62
|
<pre syntax="ruby">
|