Sha256: 0764db3428eadc15a4d98b0a6d83addc64dff32c6c362a5c808ddfd87054c39e
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
# frozen_string_literal: true require 'cancan' module Hydra module RoleManagement # Class definition for the Rails Engine class Engine < ::Rails::Engine engine_name 'role_management' # Rails 4 should do this automatically: config.paths.add 'app/controllers/concerns', eager_load: true config.paths.add 'app/models/concerns', eager_load: true config.before_configuration do # rubocop:disable Style/IfUnlessModifier # see https://github.com/fxn/zeitwerk#for_gem # Blacklight puts a generator into LOCAL APP lib/generators, so tell # zeitwerk to ignore the whole directory? If we're using zeitwerk # # See: https://github.com/cbeer/engine_cart/issues/117 if ::Rails.try(:autoloaders).try(:main).respond_to?(:ignore) ::Rails.autoloaders.main.ignore(::Rails.root.join('lib', 'generators')) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra-role-management-1.2.0 | lib/hydra/role_management.rb |