Skip to content

Commit

Permalink
Update comment for build_top_level_setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens committed Jan 4, 2018
1 parent ca2cb1e commit 6d3d96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/grape/dsl/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def within_namespace(&_block)

private

# Builds the current class :inheritable_setting. If available, it returns the superclass's :inheritable_setting.
# Otherwise, a clean :inheritable_setting is returned.
# Builds the current class :inheritable_setting. If available, it inherits from
# the superclass's :inheritable_setting.
def build_top_level_setting
Grape::Util::InheritableSetting.new.tap do |setting|
if defined?(superclass) && superclass.respond_to?(:inheritable_setting) && superclass != Grape::API
Expand Down

0 comments on commit 6d3d96b

Please sign in to comment.