Sha256: 9ad5632c72f64201556cbcc212d45db2a26e06780360d10019dc52e77178c7bf

Contents?: true

Size: 475 Bytes

Versions: 8

Compression:

Stored size: 475 Bytes

Contents

require 'rails/generators'

module Ckeditor
  class BaseGenerator < Rails::Generators::Base

    def self.source_root
      @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
    end  
    
    # copy configuration
    def copy_initializer
      template "ckeditor.rb", "config/initializers/ckeditor.rb"
    end
    
    # copy ckeditor files
    def install_ckeditor
      directory "ckeditor", "public/javascripts/ckeditor"
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
dust-ckeditor-3.5.0 lib/generators/ckeditor/base/base_generator.rb
hifi-ckeditor-3.5.2 lib/generators/ckeditor/base/base_generator.rb
hifi-ckeditor-3.5.1 lib/generators/ckeditor/base/base_generator.rb
ckeditor-3.5.0 lib/generators/ckeditor/base/base_generator.rb
ckeditor-3.4.3.pre lib/generators/ckeditor/base/base_generator.rb
ckeditor-3.4.2.pre lib/generators/ckeditor/base/base_generator.rb
ckeditor-3.4.1.pre lib/generators/ckeditor/base/base_generator.rb
ckeditor-3.4.0.pre lib/generators/ckeditor/base/base_generator.rb