activeadmin-cancan 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ require 'cancan'
1
2
  require 'activeadmin-cancan/authorization'
2
3
 
3
4
  module ActiveadminCancan
@@ -16,7 +16,7 @@ ActiveAdmin::Namespace.class_eval do
16
16
  end
17
17
 
18
18
  config = old_register(resource_class, options, &block)
19
- config.controller.load_and_authorize_resource
19
+ config.controller.load_and_authorize_resource :class => resource_class
20
20
  config
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveadminCancan
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-cancan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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-09-10 00:00:00.000000000 Z
12
+ date: 2012-09-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: 1516628949132554263
139
+ hash: 1005123001957579729
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: 1516628949132554263
148
+ hash: 1005123001957579729
149
149
  requirements: []
150
150
  rubyforge_project:
151
151
  rubygems_version: 1.8.23