Sha256: 70c75c721e612631d765316664e10e3c42038e0c8f1569c77d93f11b167b0077

Contents?: true

Size: 310 Bytes

Versions: 10

Compression:

Stored size: 310 Bytes

Contents

module Hyrax
  class TinymceAssetsController < ApplicationController
    def create
      authorize! :create, TinymceAsset
      image = TinymceAsset.create params.permit(:file)

      render json: {
        image: {
          url: image.file.url
        }
      }, content_type: "text/html"
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.1.0 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.0.5 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.0.4 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.0.3 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.0.2 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.0.1 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.0.0.rc2 app/controllers/hyrax/tinymce_assets_controller.rb
hyrax-1.0.0.rc1 app/controllers/hyrax/tinymce_assets_controller.rb
test_hyrax-0.0.1.alpha app/controllers/hyrax/tinymce_assets_controller.rb