Bookmarklet render if statement negated for code simplicity

This commit is contained in:
Jason Robinson 2011-11-09 22:38:28 +02:00
parent af5c469f10
commit c04bcebfca

View file

@ -34,9 +34,7 @@ class StatusMessagesController < ApplicationController
@aspects = current_user.aspects @aspects = current_user.aspects
@selected_contacts = @aspects.map { |aspect| aspect.contacts }.flatten.uniq @selected_contacts = @aspects.map { |aspect| aspect.contacts }.flatten.uniq
@aspect_ids = @aspects.map{|x| x.id} @aspect_ids = @aspects.map{|x| x.id}
if is_mobile_device? if ! is_mobile_device?
#render :layout
else
render :layout => nil render :layout => nil
end end
end end