Module: JSONAPI::Callbacks

Included in:
BasicResource, Processor
Defined in:
lib/jsonapi/callbacks.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/jsonapi/callbacks.rb', line 5

def self.included(base)
  base.class_eval do
    include ActiveSupport::Callbacks
    base.extend ClassMethods
  end
end