Skip to content

Commit d845a3a

Browse files
authoredMay 30, 2018
Merge pull request #1764 from budnik/patch-1
Fixes examples syntax
2 parents 6876b71 + 03f7e4c commit d845a3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1817,8 +1817,8 @@ module SharedParams
18171817
extend Grape::API::Helpers
18181818

18191819
params :order do |options|
1820-
optional :order_by, type:Symbol, values:options[:order_by], default:options[:default_order_by]
1821-
optional :order, type:Symbol, values:%i(asc desc), default:options[:default_order]
1820+
optional :order_by, type: Symbol, values: options[:order_by], default: options[:default_order_by]
1821+
optional :order, type: Symbol, values: %i(asc desc), default: options[:default_order]
18221822
end
18231823
end
18241824

@@ -1827,7 +1827,7 @@ class API < Grape::API
18271827

18281828
desc 'Get a sorted collection.'
18291829
params do
1830-
use :order, order_by:%i(id created_at), default_order_by: :created_at, default_order: :asc
1830+
use :order, order_by: %i(id created_at), default_order_by: :created_at, default_order: :asc
18311831
end
18321832

18331833
get do

0 commit comments

Comments
 (0)
Please sign in to comment.