Module: EspCkeditor

Defined in:
lib/esp-ckeditor.rb,
lib/esp-ckeditor/engine.rb,
lib/esp-ckeditor/version.rb,
lib/generators/esp_ckeditor/install_config_generator.rb

Defined Under Namespace

Classes: Engine, InstallConfigGenerator

Constant Summary collapse

VERSION =
"0.1.7"

Class Method Summary collapse

Class Method Details

.assetsObject



10
11
12
13
14
15
# File 'lib/esp-ckeditor.rb', line 10

def self.assets
  Dir[root_path.join('vendor/assets/javascripts/esp-ckeditor/**', '*.{css,js,png}')].inject([]) do |list, path|
    list << Pathname.new(path).relative_path_from(root_path.join('vendor/assets/javascripts')) unless path.match('_source')
    list
  end
end

.root_pathObject



6
7
8
# File 'lib/esp-ckeditor.rb', line 6

def self.root_path
  @root_path ||= Pathname.new( File.dirname(File.expand_path('../', __FILE__)) )
end