Module: Clearance::User

Included in:
User
Defined in:
lib/clearance/user.rb

Defined Under Namespace

Modules: AttrAccessor, Callbacks, ClassMethods, InstanceMethods, Validations

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object

Hook for all Clearance::User modules.

If you need to override parts of Clearance::User, extend and include à la carte.



22
23
24
25
26
27
28
29
# File 'lib/clearance/user.rb', line 22

def self.included(model)
  model.extend(ClassMethods)

  model.send(:include, InstanceMethods)
  model.send(:include, AttrAccessor)
  model.send(:include, Validations)
  model.send(:include, Callbacks)
end