module Ckeditor::Helpers::Controllers

Protected Instance Methods

ckeditor_attachment_files_scope(options = {}) click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 22
def ckeditor_attachment_files_scope(options = {})
  ckeditor_filebrowser_scope(options)
end
ckeditor_authorize!() click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 14
def ckeditor_authorize!
  instance_exec(&Ckeditor.authorize_with)
end
ckeditor_current_user() click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 10
def ckeditor_current_user
  instance_exec(&Ckeditor.current_user_method)
end
ckeditor_filebrowser_scope(options = {}) click to toggle source
# File lib/ckeditor/helpers/controllers.rb, line 26
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 18
def ckeditor_pictures_scope(options = {})
  ckeditor_filebrowser_scope(options)
end