Update abilities for ckeditor4 images

Add the image controller to use the obsolete load_and_authorize_resource
and authorize_resource methods in the gem
This commit is contained in:
Raúl Fuentes
2018-08-14 14:21:27 +02:00
committed by Javi Martín
parent 424535c1ae
commit 8e68f4bbd0
3 changed files with 41 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
Rails.application.routes.draw do
mount Ckeditor::Engine => '/ckeditor'
if Rails.env.development? || Rails.env.staging?
get '/sandbox' => 'sandbox#index'
get '/sandbox/*template' => 'sandbox#show'