mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add rubocop to our build. (#5004)
This commit is contained in:
@@ -62,7 +62,7 @@ class CategoryUser < ActiveRecord::Base
|
||||
auto_track(user_id: user.id)
|
||||
end
|
||||
|
||||
def self.auto_track(opts={})
|
||||
def self.auto_track(opts = {})
|
||||
|
||||
builder = SqlBuilder.new <<SQL
|
||||
UPDATE topic_users tu
|
||||
@@ -95,7 +95,7 @@ SQL
|
||||
auto_track_category: TopicUser.notification_reasons[:auto_track_category])
|
||||
end
|
||||
|
||||
def self.auto_watch(opts={})
|
||||
def self.auto_watch(opts = {})
|
||||
|
||||
builder = SqlBuilder.new <<SQL
|
||||
UPDATE topic_users tu
|
||||
@@ -154,7 +154,6 @@ SQL
|
||||
|
||||
end
|
||||
|
||||
|
||||
def self.ensure_consistency!
|
||||
exec_sql <<SQL
|
||||
DELETE FROM category_users
|
||||
|
||||
Reference in New Issue
Block a user