module Ckeditor::Helpers::Controllers
Protected Instance Methods
ckeditor_attachment_files_scope(options = {})
click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 25 def ckeditor_attachment_files_scope(options = {}) ckeditor_filebrowser_scope(options) end
ckeditor_before_create_asset(asset)
click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 16 def ckeditor_before_create_asset(asset) asset.assetable = ckeditor_current_user if ckeditor_current_user return true end
ckeditor_current_user()
click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 8 def ckeditor_current_user instance_eval &Ckeditor.current_user_method end
ckeditor_filebrowser_scope(options = {})
click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 29 def ckeditor_filebrowser_scope(options = {}) { :order => [:id, :desc] }.merge(options) end
ckeditor_pictures_scope(options = {})
click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 21 def ckeditor_pictures_scope(options = {}) ckeditor_filebrowser_scope(options) end