Bookmarklet render if statement negated for code simplicity
This commit is contained in:
parent
af5c469f10
commit
c04bcebfca
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue