@@ -158,7 +158,7 @@ def inspect
158158 protected
159159
160160 def run
161- ActiveSupport ::Notifications . instrument ( 'endpoint_run.grape' , endpoint : self , env : env ) do
161+ ActiveSupport ::Notifications . instrument ( 'endpoint_run.grape' , endpoint : self , env :) do
162162 @request = Grape ::Request . new ( env , build_params_with : inheritable_setting . namespace_inheritable [ :build_params_with ] )
163163 begin
164164 self . class . run_before_each ( self )
@@ -229,7 +229,7 @@ def run_validators(request:)
229229 def run_filters ( filters , type = :other )
230230 return unless filters
231231
232- ActiveSupport ::Notifications . instrument ( 'endpoint_run_filters.grape' , endpoint : self , filters : filters , type : type ) do
232+ ActiveSupport ::Notifications . instrument ( 'endpoint_run_filters.grape' , endpoint : self , filters :, type :) do
233233 filters . each { |filter | instance_eval ( &filter ) }
234234 end
235235 end
@@ -316,15 +316,15 @@ def build_stack
316316 stack . use Rack ::Head
317317 stack . use Rack ::Lint if lint?
318318 stack . use Grape ::Middleware ::Error ,
319- format : format ,
320- content_types : content_types ,
319+ format :,
320+ content_types :,
321321 default_status : inheritable_setting . namespace_inheritable [ :default_error_status ] ,
322322 rescue_all : inheritable_setting . namespace_inheritable [ :rescue_all ] ,
323323 rescue_grape_exceptions : inheritable_setting . namespace_inheritable [ :rescue_grape_exceptions ] ,
324324 default_error_formatter : inheritable_setting . namespace_inheritable [ :default_error_formatter ] ,
325325 error_formatters : inheritable_setting . namespace_stackable_with_hash ( :error_formatters ) ,
326326 rescue_options : inheritable_setting . namespace_stackable_with_hash ( :rescue_options ) ,
327- rescue_handlers : rescue_handlers ,
327+ rescue_handlers :,
328328 base_only_rescue_handlers : inheritable_setting . namespace_stackable_with_hash ( :base_only_rescue_handlers ) ,
329329 all_rescue_handler : inheritable_setting . namespace_inheritable [ :all_rescue_handler ] ,
330330 grape_exceptions_rescue_handler : inheritable_setting . namespace_inheritable [ :grape_exceptions_rescue_handler ]
@@ -340,9 +340,9 @@ def build_stack
340340 end
341341
342342 stack . use Grape ::Middleware ::Formatter ,
343- format : format ,
343+ format :,
344344 default_format : inheritable_setting . namespace_inheritable [ :default_format ] || :txt ,
345- content_types : content_types ,
345+ content_types :,
346346 formatters : inheritable_setting . namespace_stackable_with_hash ( :formatters ) ,
347347 parsers : inheritable_setting . namespace_stackable_with_hash ( :parsers )
348348
0 commit comments