Module: CyberCoach::Pageable
- Included in:
- Partnership, Sport, User
- Defined in:
- lib/cybercoach/pageable.rb
Overview
Mixin to make a resource readable in pages. Include it in a class by to use it.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Installs class and instance methods in the class it is included in.
Class Method Details
.included(base) ⇒ Object
Installs class and instance methods in the class it is included in.
10 11 12 13 |
# File 'lib/cybercoach/pageable.rb', line 10 def self.included(base) base.extend ClassMethods base.send :include, InstanceMethods end |