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

Version Path
fullstack-ckeditor-0.1.2 app/controllers/ckeditor/attachment_files_controller.rb
lafeber_ckeditor-3.7.3 app/controllers/ckeditor/attachment_files_controller.rb
ckeditor-3.7.3 app/controllers/ckeditor/attachment_files_controller.rb
ckeditor-3.7.2 app/controllers/ckeditor/attachment_files_controller.rb
ckeditor-3.7.1 app/controllers/ckeditor/attachment_files_controller.rb
ckeditor-3.7.0 app/controllers/ckeditor/attachment_files_controller.rb
ckeditor-3.7.0.rc3 app/controllers/ckeditor/attachment_files_controller.rb
ckeditor-3.7.0.rc2 app/controllers/ckeditor/attachment_files_controller.rb
ckeditor-3.7.0.rc1 app/controllers/ckeditor/attachment_files_controller.rb