Sha256: 64c078f2adef8c2a85b12fea644aa8da9a5bb72db7dfd965aeebdd55e037dcb4
Contents?: true
Size: 537 Bytes
Versions: 8
Compression:
Stored size: 537 Bytes
Contents
class Ckeditor::PicturesController < Ckeditor::ApplicationController skip_before_filter :verify_authenticity_token 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
8 entries across 8 versions & 1 rubygems