Module: Spreadhead::Page
- Defined in:
- lib/spreadhead/page.rb
Defined Under Namespace
Modules: Callbacks, ClassMethods, InstanceMethods, Scopes, Validations
Class Method Summary collapse
-
.included(model) ⇒ Object
Hook for all Spreadhead::Page modules.
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.
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 |