Sha256: 2e87b00d13e3d172ba8a0dec841d4690d3bca34e4025e43de0d5a6a77e5a5934
Contents?: true
Size: 990 Bytes
Versions: 1
Compression:
Stored size: 990 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 Helpers autoload :Authentication, 'socialite/helpers/authentication.rb' 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.constantize end def self.identity_class_name @@identity_class.camelize end def self.user_class user_class_name.constantize end def self.user_class_name @@user_class.camelize end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.1.0.pre | lib/socialite.rb |