Sha256: a2478d8a5babd703b6ea927cc9d48c808807a84232adc1a0bdd87205d0c84310
Contents?: true
Size: 553 Bytes
Versions: 9
Compression:
Stored size: 553 Bytes
Contents
class Ckeditor::AttachmentFilesController < Ckeditor::ApplicationController def index @attachments = Ckeditor.attachment_file_model.find_all(ckeditor_attachment_files_scope) respond_with(@attachments) end def create @attachment = Ckeditor::AttachmentFile.new respond_with_asset(@attachment) end def destroy @attachment.destroy respond_with(@attachment, :location => attachment_files_path) end protected def find_asset @attachment = Ckeditor.attachment_file_model.get!(params[:id]) end end
Version data entries
9 entries across 9 versions & 3 rubygems