From 4c428d90b9950061cf4b0cef134763dccb212771 Mon Sep 17 00:00:00 2001 From: YingRui Lu Date: Sun, 5 Jan 2020 20:32:07 +0800 Subject: [PATCH] rename delegate instance name --- lib/jsonapi/swagger/resources/fast_jsonapi_resource.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/jsonapi/swagger/resources/fast_jsonapi_resource.rb b/lib/jsonapi/swagger/resources/fast_jsonapi_resource.rb index 213b151..31f98c2 100644 --- a/lib/jsonapi/swagger/resources/fast_jsonapi_resource.rb +++ b/lib/jsonapi/swagger/resources/fast_jsonapi_resource.rb @@ -4,11 +4,11 @@ module Jsonapi class FastJsonapiResource 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 - def initialize(jr) - @jr = jr + def initialize(fr) + @fr = fr end alias attributes attributes_to_serialize