restful_acl 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ module RestfulAclController
12
12
 
13
13
  begin
14
14
  # Load the Model based on the controller name
15
- klass = self.controller_name.classify.constantize
15
+ klass = self.controller_name.classify.demodulize.constantize
16
16
 
17
17
  if params[:id]
18
18
  # Load the object and possible parent requested
@@ -40,7 +40,7 @@ module RestfulAclHelper
40
40
  private
41
41
 
42
42
  def klass
43
- params[:controller].classify.constantize
43
+ params[:controller].classify.demodulize.constantize
44
44
  end
45
45
 
46
46
  def parent_obj
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_acl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-07 00:00:00 -05:00
12
+ date: 2009-11-20 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -32,7 +32,7 @@ files:
32
32
  - lib/restful_acl_model.rb
33
33
  - rails/init.rb
34
34
  - uninstall.rb
35
- has_rdoc: true
35
+ has_rdoc: false
36
36
  homepage: http://github.com/mdarby/restful_acl
37
37
  licenses: []
38
38