Module: JSONAPIonify::Api::Base::Delegation

Included in:
JSONAPIonify::Api::Base
Defined in:
lib/jsonapionify/api/base/delegation.rb

Class Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/jsonapionify/api/base/delegation.rb', line 4

def self.extended(klass)
  klass.class_eval do
    class << self
      delegate :context,
               :response_header,
               :helper,
               :rescue_from,
               :register_exception,
               :error,
               :enable_pagination,
               :before,
               :param,
               :request_header,
               :define_pagination_strategy,
               :define_sorting_strategy,
               :sticky_params,
               :authentication,
               :on_exception,
               :example_id_generator,
               :after,
               :builder,
               :types,
               :attribute,

               to: :resource_class
    end
  end
end