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

Version Path
glebtv-ckeditor-4.0.2.7 lib/ckeditor/helpers/controllers.rb
glebtv-ckeditor-4.0.2.6 lib/ckeditor/helpers/controllers.rb
glebtv-ckeditor-4.0.2.5 lib/ckeditor/helpers/controllers.rb
glebtv-ckeditor-4.0.2.4 lib/ckeditor/helpers/controllers.rb
glebtv-ckeditor-4.0.2.2 lib/ckeditor/helpers/controllers.rb
glebtv-ckeditor-4.0.2.1 lib/ckeditor/helpers/controllers.rb
glebtv-ckeditor-4.0.2 lib/ckeditor/helpers/controllers.rb
glebtv-ckeditor-4.0.1 lib/ckeditor/helpers/controllers.rb
lafeber_ckeditor-3.7.3 lib/ckeditor/helpers/controllers.rb
ckeditor-3.7.3 lib/ckeditor/helpers/controllers.rb
ckeditor-3.7.2 lib/ckeditor/helpers/controllers.rb
ckeditor-3.7.1 lib/ckeditor/helpers/controllers.rb
ckeditor-3.7.0 lib/ckeditor/helpers/controllers.rb
ckeditor-3.7.0.rc3 lib/ckeditor/helpers/controllers.rb
ckeditor-3.7.0.rc2 lib/ckeditor/helpers/controllers.rb
ckeditor-3.7.0.rc1 lib/ckeditor/helpers/controllers.rb
ckeditor-3.6.3 lib/ckeditor/helpers/controllers.rb
ckeditor-3.6.2 lib/ckeditor/helpers/controllers.rb
ckeditor-3.6.1 lib/ckeditor/helpers/controllers.rb
ckeditor-3.6.0 lib/ckeditor/helpers/controllers.rb