Sha256: c45719fe73c331dabdf6c17dc8840f048112fba917ed529f5b1cf57d58b68be3
Contents?: true
Size: 793 Bytes
Versions: 6
Compression:
Stored size: 793 Bytes
Contents
module TheRole def self.configure(&block) yield @config ||= TheRole::Configuration.new end def self.config @config end # Configuration class class Configuration include ActiveSupport::Configurable config_accessor :layout, :destroy_strategy, :default_user_role, :access_denied_method, :login_required_method, :first_user_should_be_admin end configure do |config| config.layout = :application config.default_user_role = nil config.access_denied_method = nil config.login_required_method = nil config.destroy_strategy = nil config.first_user_should_be_admin = false end end
Version data entries
6 entries across 6 versions & 1 rubygems