Module: Restful::Base

Defined in:
lib/restful/base.rb

Overview

This is the main module for Restful implementation, in here class methods that implement the configuration macro that need to be included in controllers is defined.

Also in this module exists the definition of instance methods need it by the actions injected to a controller.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Through this method, when this module is included in a controller, all Restful functionality is defined for it.


13
14
15
# File 'lib/restful/base.rb', line 13

def self.included(base)
  base.extend ClassMethods
end