style: if ! changed by unless

- if ! changed by unless as it is more readable
- !object.blank? is equivalent to object.present?, also more readable
This commit is contained in:
Ana 2016-08-06 00:57:07 +02:00
parent 96155eb87f
commit 7e5d20c89d
18 changed files with 27 additions and 28 deletions

View file

@ -13,7 +13,7 @@
- if conference.venue
%p
= "#{conference.venue.city}/#{conference.venue.country_name}"
- if !conference.description.blank?
- unless conference.description.blank?
%p
= markdown(conference.description)
.col-md-2