Sha256: 8cf42a151d19ac7835f7a39d2909a3611a1b0aa108561038274c5c4bc5026ea2
Contents?: true
Size: 632 Bytes
Versions: 10
Compression:
Stored size: 632 Bytes
Contents
module Gluttonberg module Public class PublicAssetsController < ActionController::Base def show @asset = Asset.first( :conditions => "id=#{params[:id]} AND asset_hash like '#{params[:hash]}%' ") if @asset.blank? render :layout => "bare" , :template => 'gluttonberg/admin/exceptions/not_found.html.haml' , :status => 404 return end if params[:thumb_name].blank? redirect_to @asset.url else redirect_to @asset.url_for(params[:thumb_name].to_sym) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems