module Tramway::Auth

Constants

VERSION

Attributes

layout_path[W]

Public Class Methods

authenticable_models() click to toggle source
# File lib/tramway/auth.rb, line 8
def authenticable_models
  @authenticable_models ||= []
end
authenticable_models=(value) click to toggle source
# File lib/tramway/auth.rb, line 12
def authenticable_models=(value)
  @authenticable_models ||= []
  if value.is_a? Array
    @authenticable_models += value
  else
    @authenticable_models << value
  end
end
layout_path() click to toggle source
# File lib/tramway/auth.rb, line 27
def layout_path
  @layout_path ||= 'tramway/user/application'
end
root() click to toggle source
# File lib/tramway/auth.rb, line 21
def root
  File.dirname __dir__
end
root_path_for(user_class) click to toggle source
# File lib/tramway/auth.rb, line 36
def root_path_for(user_class)
  @root_path&.dig(user_class) || '/'
end
root_path_for=(**options) click to toggle source
# File lib/tramway/auth.rb, line 31
def root_path_for=(**options)
  @root_path ||= {}
  @root_path.merge! options
end