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