Sha256: 7ce1f178e514c972c82b4bf7a68cd413a0e7e07110b863bfdc0cb15928f99ad3
Contents?: true
Size: 740 Bytes
Versions: 5
Compression:
Stored size: 740 Bytes
Contents
require 'socialite/controllers/helpers' require 'socialite/models/identity_concern' require 'socialite/models/user_concern' require 'socialite/engine' module Socialite 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.1.2 | lib/socialite.rb |
socialite-0.1.1 | lib/socialite.rb |
socialite-0.1.0.pre.7 | lib/socialite.rb |
socialite-0.1.0.pre.6 | lib/socialite.rb |
socialite-0.1.0.pre.5 | lib/socialite.rb |