Sha256: 038f3b4a0bc01cb6fe00874c185198e5c5fadc8db5b02cc2ec17e5cfe76c7a39
Contents?: true
Size: 762 Bytes
Versions: 3
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module SimpleAuth class Config # Set which scopes will be activated. # By default it enables `user` and `admin`. attr_accessor :scopes # Set the login url. # This will be used to redirect unlogged users to the login page. # Default to `login_path`. attr_accessor :login_url # Set the logged url. # This will be used to redirect logged users to the dashboard page. # Default to `dashboard_path`. attr_accessor :logged_url # Set the flash message key. # This will be used when setting messages for unlogged/unauthorized users. attr_accessor :flash_message_key def install_helpers! ::ActionController::Base.include SimpleAuth::ActionController end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_auth-3.1.4 | lib/simple_auth/config.rb |
simple_auth-3.1.3 | lib/simple_auth/config.rb |
simple_auth-3.1.2 | lib/simple_auth/config.rb |