Sha256: 89ead0fd43cd41548580c42c1ed1c61640b3f24c3985c039bee69d23e9f75e2a
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
class Ckeditor::AttachmentFilesController < Ckeditor::BaseController def index @attachments = Ckeditor.file_model.order("id DESC") respond_with(@attachments) end def create @attachment = Ckeditor.file_model.new respond_with_asset(@attachment) end def destroy @attachment.destroy respond_with(@attachment, :location => ckeditor_attachments_path) end protected def find_asset @attachment = Ckeditor.file_model.find(params[:id]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-3.5.4 | app/controllers/ckeditor/attachment_files_controller.rb |
ckeditor-3.5.3 | app/controllers/ckeditor/attachment_files_controller.rb |