making photos#show be in no aspect
This commit is contained in:
parent
58747df1a8
commit
7d6be51cfb
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue