make rubocop happy

This commit is contained in:
Régis Hanol 2017-10-06 16:48:11 +02:00 committed by GitHub
parent 3a29ba71a3
commit 8d14d55fc5

View File

@ -46,7 +46,7 @@ class TopicUser < ActiveRecord::Base
change(user_id, topic_id, notification_level: notification_level, notifications_reason_id: reason) if should_change
end
def auto_notification_for_staging(user_id, topic_id, reason, notification_level=notification_levels[:watching])
def auto_notification_for_staging(user_id, topic_id, reason, notification_level = notification_levels[:watching])
change(user_id, topic_id, notification_level: notification_level, notifications_reason_id: reason)
end