Sha256: e42e20b7c83a7942f2331ffc3d5ca49c9e9be2f8fff6c331021d67801682971c

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

module AuthlogicFacebookShim
  module Session  
    module Adapter
      Dir[File.expand_path('../adapters/*.rb', File.dirname(__FILE__))].each do |adapter|
        class_name = File.basename(adapter).rpartition(/_adapter\.rb$/).shift.camelize
        if defined?(class_name)
          require adapter
          include AuthlogicFacebookShim::Adapters.const_get("#{class_name}Adapter")
          break
        end
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authlogic_facebook_shim-0.3.3 lib/authlogic_facebook_shim/session/adapter.rb