Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make rubocop happy
  • Loading branch information
Kukunin committed Mar 17, 2020
commit c5c8601a597c110538d7056d22d348e416266813
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Metrics/BlockLength:
# Offense count: 10
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 305
Max: 308

# Offense count: 32
Metrics/CyclomaticComplexity:
Expand Down
2 changes: 1 addition & 1 deletion lib/grape/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def call(env)
def call!(env)
env[Grape::Env::API_ENDPOINT] = self
@env = env
context = {endpoint: self, env: @env}
context = { endpoint: self, env: @env }
ActiveSupport::Notifications.instrument('endpoint_call.grape', context) do
@app.call(env).tap { |response| context[:response] = response }
end
Expand Down