mirror of
https://github.com/ditkrg/jsonapi-swagger.git
synced 2026-01-23 06:16:50 +00:00
rename delegate instance name
This commit is contained in:
parent
a4c974ab9e
commit
4c428d90b9
@ -4,11 +4,11 @@ module Jsonapi
|
|||||||
class FastJsonapiResource
|
class FastJsonapiResource
|
||||||
extend Forwardable
|
extend Forwardable
|
||||||
|
|
||||||
def_delegators :@jr, :attributes_to_serialize, :relationships_to_serialize, :sortable_fields,
|
def_delegators :@fr, :attributes_to_serialize, :relationships_to_serialize, :sortable_fields,
|
||||||
:creatable_fields, :updatable_fields, :filters, :mutable?, :transform_method
|
:creatable_fields, :updatable_fields, :filters, :mutable?, :transform_method
|
||||||
|
|
||||||
def initialize(jr)
|
def initialize(fr)
|
||||||
@jr = jr
|
@fr = fr
|
||||||
end
|
end
|
||||||
|
|
||||||
alias attributes attributes_to_serialize
|
alias attributes attributes_to_serialize
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user