File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def inject_api_helpers_to_mod(mod, &block)
59
59
end
60
60
61
61
# This module extends user defined helpers
62
- # to provide some API-specific functionality
62
+ # to provide some API-specific functionality.
63
63
module BaseHelper
64
64
attr_accessor :api
65
65
def params ( name , &block )
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ module InsideRoute
9
9
# A filtering method that will return a hash
10
10
# consisting only of keys that have been declared by a
11
11
# `params` statement against the current/target endpoint or parent
12
- # namespaces
12
+ # namespaces.
13
13
#
14
14
# @param params [Hash] The initial hash to filter. Usually this will just be `params`
15
15
# @param options [Hash] Can pass `:include_missing`, `:stringify` and `:include_parent_namespaces`
16
16
# 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.
18
18
def declared ( params , options = { } , declared_params = nil )
19
19
options [ :include_missing ] = true unless options . key? ( :include_missing )
20
20
options [ :include_parent_namespaces ] = true unless options . key? ( :include_parent_namespaces )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def default_error_status(new_status = nil)
96
96
# @option options [Boolean] :backtrace Include a backtrace in the rescue response.
97
97
# @option options [Boolean] :rescue_subclasses Also rescue subclasses of exception classes
98
98
# @param [Proc] handler Execution proc to handle the given exception as an
99
- # alternative to passing a block
99
+ # alternative to passing a block.
100
100
def rescue_from ( *args , &block )
101
101
if args . last . is_a? ( Proc )
102
102
handler = args . pop
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ def prefix(prefix = nil)
59
59
namespace_inheritable ( :root_prefix , prefix )
60
60
end
61
61
62
- # Do not route HEAD requests to GET requests automatically
62
+ # Do not route HEAD requests to GET requests automatically.
63
63
def do_not_route_head!
64
64
namespace_inheritable ( :do_not_route_head , true )
65
65
end
66
66
67
- # Do not automatically route OPTIONS
67
+ # Do not automatically route OPTIONS.
68
68
def do_not_route_options!
69
69
namespace_inheritable ( :do_not_route_options , true )
70
70
end
You can’t perform that action at this time.
0 commit comments