diff --git a/README.md b/README.md index 6cd887349d..fef5729f02 100644 --- a/README.md +++ b/README.md @@ -1817,8 +1817,8 @@ module SharedParams extend Grape::API::Helpers params :order do |options| - optional :order_by, type:Symbol, values:options[:order_by], default:options[:default_order_by] - optional :order, type:Symbol, values:%i(asc desc), default:options[:default_order] + optional :order_by, type: Symbol, values: options[:order_by], default: options[:default_order_by] + optional :order, type: Symbol, values: %i(asc desc), default: options[:default_order] end end @@ -1827,7 +1827,7 @@ class API < Grape::API desc 'Get a sorted collection.' params do - use :order, order_by:%i(id created_at), default_order_by: :created_at, default_order: :asc + use :order, order_by: %i(id created_at), default_order_by: :created_at, default_order: :asc end get do