Sha256: f89d5dd6a2e545dcdeea37b4ee722776976681abd9f4ea2ecc32986cb222bc3f

Contents?: true

Size: 254 Bytes

Versions: 6

Compression:

Stored size: 254 Bytes

Contents

class ContentFilesController < Spree::BaseController

  def create
    @content_file = ContentFile.new(params[:content_file])
    @content_file.save!

    render :text => "#{@content_file.attachment.url},#{@content_file.attachment_file_name}"
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_editor-0.70.0 app/controllers/content_files_controller.rb
spree_editor-0.50.1 app/controllers/content_files_controller.rb
spree_editor-0.50.0 app/controllers/content_files_controller.rb
spree_editor-0.40.0 app/controllers/content_files_controller.rb
spree_editor-0.30.1 app/controllers/content_files_controller.rb
spree_editor-0.30.0 app/controllers/content_files_controller.rb