Sha256: 94465c426a5f6818282582da37291432225d11f2a963698a0db9d90cbe07e083
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
class Ckeditor::AttachmentFilesController < Ckeditor::BaseController 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 => ckeditor_attachment_files_path) end protected def find_asset @attachment = Ckeditor.attachment_file_model.get!(params[:id]) end end
Version data entries
5 entries across 5 versions & 1 rubygems