Sha256: 8afaaf12b52a773c58c3a660819db83410abf19585b37ae23673d3ea7aeb6fa6

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 KB

Contents

require 'active_support'

# :nodoc: namespace
module Authpwn
  extend ActiveSupport::Autoload

  autoload :CredentialModel, 'authpwn_rails/credential_model.rb'
  autoload :CurrentUser, 'authpwn_rails/current_user.rb'
  autoload :Expires, 'authpwn_rails/expires.rb'
  autoload :SessionController, 'authpwn_rails/session_controller.rb'
  autoload :SessionMailer, 'authpwn_rails/session_mailer.rb'
  autoload :SessionModel, 'authpwn_rails/session_model.rb'
  autoload :UserModel, 'authpwn_rails/user_model.rb'

  # Contains extensions to the User model.
  module UserExtensions
    autoload :EmailField, 'authpwn_rails/user_extensions/email_field.rb'
    autoload :PasswordField, 'authpwn_rails/user_extensions/password_field.rb'
  end
end

require 'authpwn_rails/http_basic.rb'
require 'authpwn_rails/routes.rb'
require 'authpwn_rails/session.rb'
require 'authpwn_rails/test_extensions.rb'

if defined?(Rails)
  require 'authpwn_rails/engine.rb'

  # HACK(costan): this works around a known Rails bug
  #     https://rails.lighthouseapp.com/projects/8994/tickets/1905-apphelpers-within-plugin-not-being-mixed-in
  require File.expand_path('../../app/helpers/session_helper.rb', __FILE__)
  ActionController::Base.helper SessionHelper
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authpwn_rails-0.17.2 lib/authpwn_rails.rb
authpwn_rails-0.17.1 lib/authpwn_rails.rb
authpwn_rails-0.17.0 lib/authpwn_rails.rb