Sha256: c7c0ac21fb96c281706a3aed7c68c5c9ff6d34d2b77c79dd006fb6f5dd9a9d8c
Contents?: true
Size: 1.06 KB
Versions: 10
Compression:
Stored size: 1.06 KB
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"] # Rails 3/2 config load_path_method = ActiveSupport::Dependencies.respond_to?(:autoload_paths) ? :autoload_paths : :load_paths custom_models.each do |path| $LOAD_PATH << path ActiveSupport::Dependencies.send(load_path_method) << path end # Rails 3beta4 backport if defined?(ActiveSupport::HashWithIndifferentAccess) ActiveSupport::HashWithIndifferentAccess.class_eval do def symbolize_keys! symbolize_keys end end end
Version data entries
10 entries across 10 versions & 5 rubygems