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.
- data/lib/hydra-access-controls.rb +4 -1
- data/spec/unit/ability_spec.rb +1 -0
- metadata +1 -1
@@ -25,6 +25,9 @@ module Hydra
|
|
25
25
|
class AccessDenied < ::CanCan::AccessDenied; end
|
26
26
|
|
27
27
|
end
|
28
|
-
|
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
|
|
data/spec/unit/ability_spec.rb
CHANGED