chore(rubocop): giganto rubocop commit.

muahahahah
This commit is contained in:
Joseph Mastey
2017-12-05 18:46:21 -06:00
parent 284cd8811c
commit 9902345291
120 changed files with 743 additions and 635 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
# frozen_string_literal: true
class Message < ApplicationRecord
belongs_to :user
validates_presence_of :creator_id, :receiver_id, :message
def creator_name
if creator = User.where(:user_id => self.creator_id).first
if creator = User.where(user_id: self.creator_id).first
creator.full_name
else
"<b>Name unavailable</b>".html_safe