Sha256: 06821ac4b813278734c389fd632b06831802a1bd3d5ac5077e8efd61676a4f5a

Contents?: true

Size: 1.27 KB

Versions: 10

Compression:

Stored size: 1.27 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 :UserModel, 'authpwn_rails/user_model.rb'

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

require 'authpwn_rails/facebook_session.rb'
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

10 entries across 10 versions & 1 rubygems

Version Path
authpwn_rails-0.14.3 lib/authpwn_rails.rb
authpwn_rails-0.14.2 lib/authpwn_rails.rb
authpwn_rails-0.14.1 lib/authpwn_rails.rb
authpwn_rails-0.14.0 lib/authpwn_rails.rb
authpwn_rails-0.13.4 lib/authpwn_rails.rb
authpwn_rails-0.13.3 lib/authpwn_rails.rb
authpwn_rails-0.13.2 lib/authpwn_rails.rb
authpwn_rails-0.13.1 lib/authpwn_rails.rb
authpwn_rails-0.13.0 lib/authpwn_rails.rb
authpwn_rails-0.12.1 lib/authpwn_rails.rb