canned 0.1.5 → 0.1.6
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/canned/controller_ext.rb +2 -1
- data/lib/canned/version.rb +1 -1
- metadata +2 -2
|
@@ -49,7 +49,7 @@ module Canned
|
|
|
49
49
|
# run profile validation
|
|
50
50
|
result = false
|
|
51
51
|
_profiles.each do |profile|
|
|
52
|
-
case _definition.validate proxy, profile, [
|
|
52
|
+
case _definition.validate proxy, profile, [controller_path, "#{controller_path}##{action_name}"]
|
|
53
53
|
when :forbidden then return false
|
|
54
54
|
when :allowed then result = true
|
|
55
55
|
end
|
|
@@ -147,6 +147,7 @@ module Canned
|
|
|
147
147
|
end
|
|
148
148
|
}
|
|
149
149
|
end
|
|
150
|
+
alias load_resource register_resource
|
|
150
151
|
|
|
151
152
|
def register_default_resources
|
|
152
153
|
# TODO: Load resources using convention and controller names.
|
data/lib/canned/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: canned
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2013-02-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|