Sha256: 7395d639cd89ea14535b94c833eafac3942e849392e7e31878184ddc06e5c543

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 Bytes

Contents

# Loads sub-classes of the Credential model.
#
# We allow the Credential model to be defined in the Rails application, so the
# application can choose the storage model (ActiveRecord vs Mongoid etc.). This
# means that we have to load the classes that inherit from Credential after it's
# defined, which is long after the authpwn_rails engine is loaded.

require 'active_support'

module Credentials
  extend ActiveSupport::Autoload
  
  autoload :Email, 'authpwn_rails/credentials/email.rb'
  autoload :Facebook, 'authpwn_rails/credentials/facebook.rb'
  autoload :Password, 'authpwn_rails/credentials/password.rb'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authpwn_rails-0.10.1 lib/authpwn_rails/credentials.rb