Sha256: 87c56d172f34f864c218c6b2ab9d318d4f41994dadb1b188685883bfd8f82754
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
class PicturesController < InheritedResources::Base load_and_authorize_resource def show path = @picture.file.path(params[:style]) respond_to do |format| format.all {send_file path, :type => @picture.file_content_type, :disposition => "inline"} end end def index @document_activities = current_subject.wall(:profile, :for => current_subject, :object_type => :Picture).all; end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-documents-0.1.1 | app/controllers/pictures_controller.rb |
social_stream-documents-0.1.0 | app/controllers/pictures_controller.rb |