mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
DEV: Update rubocop-discourse to latest version
The lastest version of rubocop-discourse enables rules regarding plugins.
This commit is contained in:

committed by
Loïc Guitaut

parent
7a6ba47e7b
commit
f7d7092a7a
@ -2,18 +2,10 @@
|
||||
|
||||
module Chat
|
||||
class ApiController < ::Chat::BaseController
|
||||
before_action :ensure_logged_in
|
||||
before_action :ensure_can_chat
|
||||
|
||||
include Chat::WithServiceHelper
|
||||
|
||||
private
|
||||
|
||||
def ensure_can_chat
|
||||
raise Discourse::NotFound unless SiteSetting.chat_enabled
|
||||
guardian.ensure_can_chat!
|
||||
end
|
||||
|
||||
def default_actions_for_service
|
||||
proc do
|
||||
on_success { render(json: success_json) }
|
||||
|
Reference in New Issue
Block a user