Corrected with rubocop cop 'Style/HashSyntax'.

This commit is contained in:
Thorsten Eckel 2015-05-01 13:55:23 +02:00
parent b235aa2a79
commit 92ca9f1bcd

View file

@ -606,8 +606,8 @@ class OwnModel < ApplicationModel
class_name = self.class.name
class_name.gsub!(/::/, '')
Sessions.broadcast(
:event => class_name + ':touch',
:data => { :id => self.id, :updated_at => self.updated_at }
event: class_name + ':touch',
data: { id: self.id, updated_at: self.updated_at }
)
end