Sha256: e9986c59ea61f4f13330223132bdcf76f6d1511bf2ed559a1e3a414f897858a5
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
class Ckeditor::ApplicationController < ApplicationController 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-4.1.6 | app/controllers/ckeditor/application_controller.rb |
ckeditor-4.1.5 | app/controllers/ckeditor/application_controller.rb |