making photos#show be in no aspect

This commit is contained in:
maxwell 2010-11-08 17:53:47 -08:00
parent 58747df1a8
commit 7d6be51cfb

View file

@ -83,6 +83,7 @@ class PhotosController < ApplicationController
end
def show
@aspect = :none
@photo = current_user.find_visible_post_by_id params[:id]
unless @photo
render :file => "#{Rails.root}/public/404.html", :layout => false, :status => 404