Sha256: 674e7cea72cea400b469414e61a19fa8cf4e77cf8b46ba0fdcb1039257b748f0

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

class Ckeditor::ApplicationController < Ckeditor.parent_controller.constantize
  layout 'ckeditor/application'

  before_filter :find_asset, :only => [:destroy]
  before_filter :ckeditor_authorize!
  before_filter :authorize_resource

  protected

    def respond_with_asset(asset)
      _response = Ckeditor::AssetResponse.new(asset, request)
      _callback = ckeditor_before_create_asset(asset)

      if _callback && asset.save
        render _response.success(config.relative_url_root)
      else
        render _response.errors
      end
    end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
glebtv-ckeditor-4.5.10.2 app/controllers/ckeditor/application_controller.rb
glebtv-ckeditor-4.5.10.1 app/controllers/ckeditor/application_controller.rb
glebtv-ckeditor-4.5.7.1 app/controllers/ckeditor/application_controller.rb
glebtv-ckeditor-4.5.7 app/controllers/ckeditor/application_controller.rb
ckeditor_custom_controller-4.1.6 app/controllers/ckeditor/application_controller.rb