Module: Passport::User

Defined in:
lib/passport/core/user.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
# File 'lib/passport/core/user.rb', line 4

def self.included(base)
  base.validate :validate_passport, :if => lambda { Passport.authenticating?(:user) }
  base.send :include, InstanceMethods
end