lockdown 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/lockdown/rules.rb +3 -3
- data/lib/lockdown.rb +1 -1
- metadata +2 -2
data/lib/lockdown/rules.rb
CHANGED
@@ -262,12 +262,12 @@ module Lockdown
|
|
262
262
|
permission_objects.each do |name, perm|
|
263
263
|
@permissions[perm.name] ||= []
|
264
264
|
perm.controllers.each do |name, controller|
|
265
|
-
@permissions[perm.name]
|
265
|
+
@permissions[perm.name] |= controller.access_methods
|
266
266
|
|
267
267
|
if perm.public_access?
|
268
|
-
@public_access
|
268
|
+
@public_access |= controller.access_methods
|
269
269
|
elsif perm.protected_access?
|
270
|
-
@protected_access
|
270
|
+
@protected_access |= controller.access_methods
|
271
271
|
end
|
272
272
|
end
|
273
273
|
end
|
data/lib/lockdown.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Stone
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-12 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|