Sha256: 7085866b618c63b101a3acf0013c41187133c2743be92b08c1589daa8663f513

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

class Ckeditor::PicturesController < Ckeditor::BaseController

  def index
    @pictures = Ckeditor.image_model.order("id DESC")
    respond_with(@pictures) 
  end
  
  def create
    @picture = Ckeditor.image_model.new
	  respond_with_asset(@picture)
  end
  
  def destroy
    @picture.destroy
    respond_with(@picture, :location => ckeditor_pictures_path)
  end
  
  protected
  
    def find_asset
      @picture = Ckeditor.image_model.find(params[:id])
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ckeditor-3.5.4 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.5.3 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.5.2 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.5.1 app/controllers/ckeditor/pictures_controller.rb