Module: Eazypi::ApiController

Defined in:
lib/eazypi/api_controller.rb

Overview

Include this module in your Rails controller to define operations

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
# File 'lib/eazypi/api_controller.rb', line 6

def self.included(base)
  base.instance_variable_set(:@operations, [])
  base.include(InstanceMethods)
  base.extend(ClassMethods)
end