Sha256: 32256ab925ba4c95481c470a4c99430d2e5c95d46be2884997d144a27c25f776

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 Bytes

Contents

require 'fileutils'

module Ckeditor
  module Utils
    CKEDITOR_INSTALL_DIRECTORY = Rails.root.join('/public/javascripts/ckeditor/')

    ##################################################################
    # remove the existing install (if any)
    def  self.destroy
      if File.exist?(CKEDITOR_INSTALL_DIRECTORY)
        FileUtils.rm_r(CKEDITOR_INSTALL_DIRECTORY)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ckeditor-3.4.0.pre lib/ckeditor/utils.rb
ckeditor-3.2.4 lib/ckeditor/utils.rb
ckeditor-3.2.3 lib/ckeditor/utils.rb
ckeditor-3.2.1 lib/ckeditor/utils.rb