Module: Spreadhead::Page

Defined in:
lib/spreadhead/page.rb

Defined Under Namespace

Modules: Callbacks, ClassMethods, InstanceMethods, Scopes, Validations

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object

Hook for all Spreadhead::Page modules.

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

Examples:

extend ClassMethods
include InstanceMethods
include AttrAccessor
include Callbacks

See Also:



20
21
22
23
24
25
26
# File 'lib/spreadhead/page.rb', line 20

def self.included(model)
  model.extend(ClassMethods)
  model.send(:include, InstanceMethods)
  model.send(:include, Validations)
  model.send(:include, Scopes)
  model.send(:include, Callbacks)
end