Module: SelfAuthRails

Defined in:
lib/self-auth-rails.rb,
lib/self-auth-rails/engine.rb,
lib/self-auth-rails/version.rb,
app/jobs/self_auth_rails/application_job.rb,
app/helpers/self_auth_rails/sessions_helper.rb,
app/models/self_auth_rails/application_record.rb,
app/helpers/self_auth_rails/application_helper.rb,
app/mailers/self_auth_rails/application_mailer.rb,
app/controllers/self_auth_rails/sessions_controller.rb,
app/controllers/self_auth_rails/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, SessionsHelper Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, SessionsController

Constant Summary collapse

VERSION =
"0.1.6"

Class Method Summary collapse

Class Method Details

.session_classObject



41
42
43
44
# File 'lib/self-auth-rails.rb', line 41

def self.session_class
  class_name = session_class_name || 'User'
  Object.const_get(class_name)
end

.setup {|_self| ... } ⇒ Object

this function maps the vars from your app into your engine

Yields:

  • (_self)

Yield Parameters:

  • _self (SelfAuthRails)

    the object that the method was called on



47
48
49
# File 'lib/self-auth-rails.rb', line 47

def self.setup(&block)
  yield self
end