Skip to content

Commit

Permalink
Merge pull request #724 from GvS666/master
Browse files Browse the repository at this point in the history
Fixed documentation for redirect
  • Loading branch information
dblock committed Aug 18, 2014
2 parents 37362d8 + c4160c6 commit a044788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/dsl/inside_route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def error!(message, status = nil, headers = nil)
#
# @param url [String] The url to be redirect.
# @param options [Hash] The options used when redirect.
# :permanent, default true.
# :permanent, default false.
def redirect(url, options = {})
merged_options = { permanent: false }.merge(options)
if merged_options[:permanent]
Expand Down

0 comments on commit a044788

Please sign in to comment.