Sha256: d29c834fa4aabee08a11ed5ce2beae7088ed7e11b00a813dd22ee1a6492adc8c

Contents?: true

Size: 1002 Bytes

Versions: 1

Compression:

Stored size: 1002 Bytes

Contents

require 'active_record'
require "rubygems"
require 'authlogic'
require 'oauth'
require 'oauth2'

this = File.dirname(__FILE__)
library = "#{this}/authlogic_connect"

require "#{this}/open_id_authentication"
require "#{library}/ext"
require "#{library}/authlogic_connect"
require "#{library}/callback_filter"
require "#{library}/access_token"
require "#{library}/openid"
require "#{library}/oauth"
require "#{library}/common"
require "#{library}/engine" if defined?(Rails) && Rails::VERSION::MAJOR == 3

custom_models =   ["#{library}/access_token"]
custom_models +=  Dir["#{library}/oauth/tokens"]
custom_models +=  Dir["#{library}/openid/tokens"]

custom_models.each do |path|
  $LOAD_PATH << path
  ActiveSupport::Dependencies.load_paths << path
end

# Rails 3beta4 backport
if defined?(ActiveSupport::HashWithIndifferentAccess)
  ActiveSupport::HashWithIndifferentAccess.class_eval do
    unless defined?(:symbolize_keys!)
      def symbolize_keys!
        symbolize_keys
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authlogic-connect-0.0.5 lib/authlogic-connect.rb