Module: Tramway::Auth

Defined in:
lib/tramway/auth.rb,
lib/tramway/auth/engine.rb,
lib/tramway/auth/version.rb,
app/forms/tramway/auth/session_form.rb,
app/jobs/tramway/auth/application_job.rb,
app/models/tramway/auth/application_record.rb,
app/helpers/tramway/auth/application_helper.rb,
app/mailers/tramway/auth/application_mailer.rb,
app/controllers/tramway/auth/web/sessions_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Web Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, SessionForm

Constant Summary collapse

VERSION =
'1.2.1.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.layout_pathObject



27
28
29
# File 'lib/tramway/auth.rb', line 27

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

.root_pathObject



33
34
35
# File 'lib/tramway/auth.rb', line 33

def root_path
  @root_path || '/'
end

Class Method Details

.authenticable_modelsObject



8
9
10
# File 'lib/tramway/auth.rb', line 8

def authenticable_models
  @authenticable_models ||= []
end

.authenticable_models=(value) ⇒ Object



12
13
14
15
16
17
18
19
# 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

.rootObject



21
22
23
# File 'lib/tramway/auth.rb', line 21

def root
  File.dirname __dir__
end