Code style fixes

This commit is contained in:
Oleksii Kriuchykhin 2016-09-30 09:34:58 +02:00
parent 036bda3afa
commit f5cc2fe225
2 changed files with 2 additions and 4 deletions

View file

@ -1,10 +1,8 @@
module NotificationsHelper
def create_system_notification(title, message)
users = User.where.not(confirmed_at: nil)
users.each do |u|
UserNotification.create_notification(u, title, message, :system_message)
end
end
end

View file

@ -20,9 +20,9 @@ class UserNotification < ActiveRecord::Base
notification.message = message
notification.type_of = type
notification.save!
usernotification = UserNotification.new(user: user, notification: notification, checked: false)
usernotification = UserNotification
.new(user: user, notification: notification, checked: false)
usernotification.save!
end
end
end