Module: Headstart::User

Defined in:
lib/headstart/user.rb

Defined Under Namespace

Modules: AttrAccessor, Callbacks, ClassMethods, InstanceMethods, Validations

Constant Summary collapse

Admin =
'admin'

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object

Hook for all Headstart::User modules.

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

Examples:

extend ClassMethods
include InstanceMethods
include AttrAccessor
include Callbacks

See Also:



25
26
27
28
29
30
31
32
# File 'lib/headstart/user.rb', line 25

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

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