Sha256: 5c456c1db3faa342e1535f6ea8a36d0edcce2b1c6e0a46a19b29fa0fda09d65f

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

module JSONAPIonify::Api
  module Base::Delegation

    def self.extended(klass)
      klass.class_eval do
        class << self
          delegate :context, :response_header, :helper, :rescue_from, :error,
                   :enable_pagination, :before, :param, :request_header,
                   :define_pagination_strategy, :define_sorting_strategy,
                   :sticky_params, :authentication, :on_exception,
                   :example_id_generator,
                   to: :resource_class
        end
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jsonapionify-0.9.0 lib/jsonapionify/api/base/delegation.rb