Sha256: a56909477aeb51132a41ca92de592f8a6d93a4c854cfa64936781ef029cee960

Contents?: true

Size: 1.2 KB

Versions: 6

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

# Authlogic uses ActiveSupport's core extensions like `strip_heredoc` and
# `squish`. ActiveRecord does not `require` these exensions, so we must.
#
# It's possible that we could save a few milliseconds by loading only the
# specific core extensions we need, but `all.rb` is simpler. We can revisit this
# decision if it becomes a problem.
require "active_support/all"

require "active_record"

path = File.dirname(__FILE__) + "/authlogic/"

[
  "i18n",
  "random",
  "config",

  "controller_adapters/abstract_adapter",
  "cookie_credentials",

  "crypto_providers",

  "acts_as_authentic/email",
  "acts_as_authentic/logged_in_status",
  "acts_as_authentic/login",
  "acts_as_authentic/magic_columns",
  "acts_as_authentic/password",
  "acts_as_authentic/perishable_token",
  "acts_as_authentic/persistence_token",
  "acts_as_authentic/session_maintenance",
  "acts_as_authentic/single_access_token",
  "acts_as_authentic/base",

  "session/magic_column/assigns_last_request_at",
  "session/base"
].each do |library|
  require path + library
end

require path + "controller_adapters/rails_adapter"   if defined?(Rails)
require path + "controller_adapters/sinatra_adapter" if defined?(Sinatra)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
authlogic-5.2.0 lib/authlogic.rb
authlogic-5.1.0 lib/authlogic.rb
authlogic-5.0.4 lib/authlogic.rb
authlogic-5.0.3 lib/authlogic.rb
authlogic-5.0.2 lib/authlogic.rb
authlogic-5.0.1 lib/authlogic.rb