enable style/dotposition rubocop cop

This commit is contained in:
Sunny 2017-04-06 23:19:58 -04:00
parent 29650beddb
commit 03fa299058
25 changed files with 143 additions and 142 deletions

View file

@ -286,8 +286,8 @@ class Event < ActiveRecord::Base
end
def before_end_of_conference
errors.
add(:created_at, "can't be after the conference end date!") if program.conference && program.conference.end_date &&
errors
.add(:created_at, "can't be after the conference end date!") if program.conference && program.conference.end_date &&
(Date.today > program.conference.end_date)
end