Sha256: 68c8ab45a71be0a82a8b12e134c83c653501893bf59505f2c538ccbde1e2903b
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
require 'socialite/engine' require 'haml' require 'omniauth' module Socialite autoload :ControllerSupport, 'socialite/controller_support' module Controllers autoload :Helpers, 'socialite/controllers/helpers' end module Models autoload :IdentityConcern, 'socialite/models/identity_concern' autoload :UserConcern, 'socialite/models/user_concern' end def self.setup yield self if block_given? end mattr_accessor :user_class, :identity_class, :providers def self.providers @@providers ||= [] end def self.provider(klass, *args) @@providers ||= [] @@providers << [klass, args] end def self.identity_class identity_class_name.try(:constantize) end def self.identity_class_name @@identity_class.try(:camelize) || 'Identity' end def self.user_class user_class_name.try(:constantize) end def self.user_class_name @@user_class.try(:camelize) || 'User' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.1.0.pre.4 | lib/socialite.rb |
socialite-0.1.0.pre.3 | lib/socialite.rb |
socialite-0.1.0.pre.2 | lib/socialite.rb |