canned 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, [controller_name, "#{controller_name}##{action_name}"]
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.
@@ -1,3 +1,3 @@
1
1
  module Canned
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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: 2012-12-27 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails