Sha256: 756156ed44fa54d0b90c1b9c6b40891b4420e7c62d1535bc344405ff8564c0e4
Contents?: true
Size: 943 Bytes
Versions: 6
Compression:
Stored size: 943 Bytes
Contents
# This allows Authz to eager_load the scopables when your application boots # if you have eager_loading disabled. # If you change the location of the scopables, adjust the path. # Not loading the scopables can lead to inconsistent behaviour. unless Rails.configuration.eager_load Dir[Rails.root.join('app/scopables/**/*.rb')].each{ |f| require f } end Authz.configure do |config| # The method that Authz should use to force authentication into the Authorization Admin config.force_authentication_method = :authenticate_user! # The method used to access the current user config.current_user_method = :current_user # Enable cross-request caching # You will need to configure your Rails app # to perform caching through ActiveSupport::Cache # See: https://guides.rubyonrails.org/caching_with_rails.html # # Authz will use the same cache store that you configure # for your app. config.cross_request_caching = true end
Version data entries
6 entries across 6 versions & 1 rubygems