Sha256: 0994ce3a8e0656b35ba25e6ff6d49dc1ce1fcc42721f49c2ffd81554eb2347ab
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true module Ckeditor module Helpers module Controllers protected def ckeditor_current_user instance_exec(&Ckeditor.current_user_method) end def ckeditor_authorize! instance_exec(&Ckeditor.authorize_with) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-5.1.3 | lib/ckeditor/helpers/controllers.rb |
ckeditor-5.1.2 | lib/ckeditor/helpers/controllers.rb |
ckeditor-5.1.1 | lib/ckeditor/helpers/controllers.rb |