Sha256: af752f50e5b4b6c02802f9b9ba9d9a7b130af40db4f280539b7904e4e60cc46e
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
class IshLibManager::PhotosController < IshLibManager::ApplicationController def without_gallery @photos = Photo.unscoped.where( :gallery => nil, :is_trash => false ) end def destroy @photo = Photo.unscoped.find params[:id] @photo.is_trash = true @photo.save redirect_to request.referrer end def show @photo = Photo.unscoped.find params[:id] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ish_lib_manager-0.0.1 | app/controllers/ish_lib_manager/photos_controller.rb |