Sha256: 03d78e7eeadc5c935364e35e0dd7f2d6f5732f2497fa38169de13addfeb6cc70
Contents?: true
Size: 603 Bytes
Versions: 8
Compression:
Stored size: 603 Bytes
Contents
class Ckeditor::AttachmentFilesController < Ckeditor::ApplicationController skip_before_filter :verify_authenticity_token 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
8 entries across 8 versions & 1 rubygems