lib/hydra-access-controls.rb in hydra-access-controls-11.0.7 vs lib/hydra-access-controls.rb in hydra-access-controls-12.0.0

- old
+ new

@@ -27,10 +27,16 @@ @config end alias :config :configure end - class Engine < Rails::Engine; end + class Engine < Rails::Engine + config.before_configuration do + ActiveSupport::Inflector.inflections(:en) do |inflect| + inflect.acronym 'ACL' + end + end + end # This error is raised when a user isn't allowed to access a given controller action. # This usually happens within a call to AccessControlsEnforcement#enforce_access_controls but can be # raised manually. class AccessDenied < ::CanCan::AccessDenied; end