mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -30,7 +30,7 @@ class UserApiKey < ActiveRecord::Base
|
||||
# not a rails route, special handling
|
||||
return true if action == "message_bus" && env["PATH_INFO"] =~ /^\/message-bus\/.*\/poll/
|
||||
|
||||
params = env['action_dispatch.request.path_parameters']
|
||||
params = env['action_dispatch.request.path_parameters']
|
||||
|
||||
return false unless params
|
||||
|
||||
|
Reference in New Issue
Block a user