Sha256: b7f014e204e2fea383840ad53603550a1547c4fe441adaa4e8c68b54ad365503
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 Bytes
Contents
class Ckeditor::ApplicationController < Ckeditor.parent_controller.constantize layout 'ckeditor/application' before_action :find_asset, :only => [:destroy] before_action :ckeditor_authorize! before_action :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
4 entries across 4 versions & 3 rubygems