Sha256: 83552096e898bb21047b2ba4985f4d5b5e5c2bd08966340a4f414d8495332b11
Contents?: true
Size: 740 Bytes
Versions: 21
Compression:
Stored size: 740 Bytes
Contents
module Ckeditor module Helpers module Controllers extend ActiveSupport::Concern protected def ckeditor_authenticate return true end def ckeditor_before_create_asset(asset) asset.assetable = current_user if respond_to?(:current_user) return true end def ckeditor_pictures_scope(options = {}) ckeditor_filebrowser_scope(options) end def ckeditor_attachment_files_scope(options = {}) ckeditor_filebrowser_scope(options) end def ckeditor_filebrowser_scope(options = {}) { :order => [:id, :desc] }.merge(options) end end end end
Version data entries
21 entries across 21 versions & 3 rubygems