hydra-access-controls 5.0.0.pre7 → 5.0.0.pre8

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,6 +25,9 @@ module Hydra
25
25
  class AccessDenied < ::CanCan::AccessDenied; end
26
26
 
27
27
  end
28
- require 'ability'
28
+ ActiveSupport.on_load(:after_initialize) do
29
+ # Enable the ability class in the local application to load before the ability class provided by hydra-access-controls
30
+ require 'ability'
31
+ end
29
32
  require 'role_mapper'
30
33
 
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'ability'
2
3
 
3
4
  describe Ability do
4
5
  before do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-access-controls
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.pre7
4
+ version: 5.0.0.pre8
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: