Sha256: 58fdb32efbca49245c47b927b420c0dcd12776dff0c2af9bb457bec0e78b3122
Contents?: true
Size: 582 Bytes
Versions: 7
Compression:
Stored size: 582 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 # open_id strategy can have configurable name def strategy_name options = @args.last.is_a?(Hash) && @args.last options && options[:name] ? options[:name] : @provider end def strategy_class ::OmniAuth::Strategies.const_get("#{::OmniAuth::Utils.camelize(@provider.to_s)}") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems