Sha256: 7e54690953dac35f4b2b14a90bb6602d637e763d2ae79c29b277414b1ccdad7b
Contents?: true
Size: 487 Bytes
Versions: 9
Compression:
Stored size: 487 Bytes
Contents
class Ckeditor::PicturesController < Ckeditor::ApplicationController def index @pictures = Ckeditor.picture_model.find_all(ckeditor_pictures_scope) respond_with(@pictures) end def create @picture = Ckeditor::Picture.new respond_with_asset(@picture) end def destroy @picture.destroy respond_with(@picture, :location => pictures_path) end protected def find_asset @picture = Ckeditor.picture_model.get!(params[:id]) end end
Version data entries
9 entries across 9 versions & 3 rubygems