Class: Ishapi::GalleriesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ishapi/galleries_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
# File 'app/controllers/ishapi/galleries_controller.rb', line 5

def show
  @gallery = ::Gallery.unscoped.find_by :galleryname => params[:galleryname]
  authorize! :show, @gallery
end