Skip to content

Commit

Permalink
fix max number agument
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Paret committed Nov 4, 2014
1 parent 59febee commit f293ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apipie/dsl_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def api(*args) #:doc:
when 0..1
desc = args.first
_apipie_dsl_data[:api_from_routes] = { :desc => desc, :options => {} }
when 2..3
when 2..4
method, path, desc, options = *args
_apipie_dsl_data[:api_args] << [method, path, desc, (options || {})]
else
Expand Down

0 comments on commit f293ea1

Please sign in to comment.