Sha256: 024b535311735dcdf6cc0f540f61798a23091bcfca4270b16767cc9e3ca93714
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
# frozen_string_literal: true module SimpleAuth require "rails/railtie" require "global_id/railtie" require "active_support/concern" require "simple_auth/version" require "simple_auth/config" require "simple_auth/railtie" require "simple_auth/action_controller" require "simple_auth/action_controller/require_login_action" require "simple_auth/session" require "simple_auth/generator" def self.setup yield config end def self.config @config ||= Config.new end setup do |config| config.flash_message_key = :alert config.scopes = %i[user] config.login_url = -> { login_path } config.logged_url = -> { dashboard_path } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_auth-3.1.3 | lib/simple_auth.rb |
simple_auth-3.1.2 | lib/simple_auth.rb |