Skip to content

Commit 3691200

Browse files
Format comments
1 parent 968c4bf commit 3691200

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/grape/dsl/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def inject_api_helpers_to_mod(mod, &block)
5959
end
6060

6161
# This module extends user defined helpers
62-
# to provide some API-specific functionality
62+
# to provide some API-specific functionality.
6363
module BaseHelper
6464
attr_accessor :api
6565
def params(name, &block)

lib/grape/dsl/inside_route.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ module InsideRoute
99
# A filtering method that will return a hash
1010
# consisting only of keys that have been declared by a
1111
# `params` statement against the current/target endpoint or parent
12-
# namespaces
12+
# namespaces.
1313
#
1414
# @param params [Hash] The initial hash to filter. Usually this will just be `params`
1515
# @param options [Hash] Can pass `:include_missing`, `:stringify` and `:include_parent_namespaces`
1616
# options. `:include_parent_namespaces` defaults to true, hence must be set to false if
17-
# you want only to return params declared against the current/target endpoint
17+
# you want only to return params declared against the current/target endpoint.
1818
def declared(params, options = {}, declared_params = nil)
1919
options[:include_missing] = true unless options.key?(:include_missing)
2020
options[:include_parent_namespaces] = true unless options.key?(:include_parent_namespaces)

lib/grape/dsl/request_response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def default_error_status(new_status = nil)
9696
# @option options [Boolean] :backtrace Include a backtrace in the rescue response.
9797
# @option options [Boolean] :rescue_subclasses Also rescue subclasses of exception classes
9898
# @param [Proc] handler Execution proc to handle the given exception as an
99-
# alternative to passing a block
99+
# alternative to passing a block.
100100
def rescue_from(*args, &block)
101101
if args.last.is_a?(Proc)
102102
handler = args.pop

lib/grape/dsl/routing.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ def prefix(prefix = nil)
5959
namespace_inheritable(:root_prefix, prefix)
6060
end
6161

62-
# Do not route HEAD requests to GET requests automatically
62+
# Do not route HEAD requests to GET requests automatically.
6363
def do_not_route_head!
6464
namespace_inheritable(:do_not_route_head, true)
6565
end
6666

67-
# Do not automatically route OPTIONS
67+
# Do not automatically route OPTIONS.
6868
def do_not_route_options!
6969
namespace_inheritable(:do_not_route_options, true)
7070
end

0 commit comments

Comments
 (0)