canned 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- 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
|