Sha256: d35f61162194b46f92e814c1f4862e9b8e9e2b0b3d7662086a7688d4455592bd

Contents?: true

Size: 693 Bytes

Versions: 2

Compression:

Stored size: 693 Bytes

Contents

# frozen_string_literal: true

require 'tramway/auth/engine'

module Tramway
  module Auth
    class << self
      def authenticable_classes
        @authenticable_classes ||= []
      end

      def authenticable_classes=(value)
        @authenticable_classes ||= []
        if value.is_a? Array
          @authenticable_classes += value
        else
          @authenticable_classes << value
        end
      end

      def root
        File.dirname __dir__
      end

      attr_writer :layout_path

      def layout_path
        @layout_path ||= 'tramway/user/application'
      end

      attr_writer :root_path

      def root_path
        @root_path || '/'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-auth-1.1.0.3 lib/tramway/auth.rb
tramway-auth-1.1.0.2 lib/tramway/auth.rb