Skip to content

Commit c635bf6

Browse files
committed
Fixes small typo and cleans a couple of comments.
1 parent 3ddef71 commit c635bf6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/grape/api.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def call!(env)
3535

3636
# Create a scope without affecting the URL.
3737
#
38-
# @param name [Symbol] Purely placebo, just allows to to name the scope to make the code more readable.
38+
# @param name [Symbol] Purely placebo, just allows to name the scope to make the code more readable.
3939
def scope(name = nil, &block)
4040
within_namespace do
4141
nest(block)
@@ -153,7 +153,6 @@ def add_head_not_allowed_methods_and_options_methods
153153
allow_header = (['OPTIONS'] | allowed_methods).join(', ')
154154
unless self.class.namespace_inheritable(:do_not_route_options)
155155
unless allowed_methods.include?('OPTIONS')
156-
# require 'pry-byebug'; binding.pry
157156
self.class.options(path, {}) do
158157
header 'Allow', allow_header
159158
status 204

lib/grape/dsl/configuration.rb

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module Configuration
77

88
module ClassMethods
99
attr_writer :logger
10-
# attr_reader :settings
1110

1211
include Grape::DSL::Settings
1312

0 commit comments

Comments
 (0)