Sha256: c1397cf160e5eafbdbcda757906f0e330f2d35d8c245c7a21585a7a767065fae
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
class Ckeditor::AttachmentsController < Ckeditor::BaseController def index @attachments = Ckeditor.file_model.order("id DESC") respond_with(@attachments) end def edit_files @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) end protected def find_asset @attachment = Ckeditor.file_model.find(params[:id]) end end
Version data entries
3 entries across 3 versions & 2 rubygems