Sha256: c56c51728326b0980cc79db4fdc097a91c707da03fb9ec8c24ebaf7485cb0b23

Contents?: true

Size: 377 Bytes

Versions: 9

Compression:

Stored size: 377 Bytes

Contents

module Devise
  module OmniAuth
    class Config
      attr_accessor :strategy
      attr_reader :args

      def initialize(provider, args)
        @provider = provider
        @args     = args
        @strategy = nil
      end

      def strategy_class
        ::OmniAuth::Strategies.const_get("#{::OmniAuth::Utils.camelize(@provider.to_s)}")
      end
    end
  end
end     

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.2.1/lib/devise/omniauth/config.rb
devise-1.3.4 lib/devise/omniauth/config.rb
devise-1.3.3 lib/devise/omniauth/config.rb
devise-1.3.2 lib/devise/omniauth/config.rb
devise-1.3.1 lib/devise/omniauth/config.rb
devise-1.3.0 lib/devise/omniauth/config.rb
devise-1.2.1 lib/devise/omniauth/config.rb
devise-1.2.0 lib/devise/omniauth/config.rb
devise-jdguyot-1.2.rc3 lib/devise/omniauth/config.rb