mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
12 lines
415 B
Ruby
12 lines
415 B
Ruby
# frozen_string_literal: true
|
|
|
|
Rolify.configure do |config|
|
|
# By default ORM adapter is ActiveRecord. uncomment to use mongoid
|
|
# config.use_mongoid
|
|
|
|
# Dynamic shortcuts for User class (user.is_admin? like methods). Default is: false
|
|
# config.use_dynamic_shortcuts
|
|
|
|
# Configuration to remove roles from database once the last resource is removed. Default is: true
|
|
config.remove_role_if_empty = false
|
|
end
|