Class: Ckeditor::BaseGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Ckeditor::BaseGenerator
- Defined in:
- lib/generators/ckeditor/base/base_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#copy_initializer ⇒ Object
copy configuration.
-
#install_ckeditor ⇒ Object
copy ckeditor files.
Class Method Details
.source_root ⇒ Object
6 7 8 |
# File 'lib/generators/ckeditor/base/base_generator.rb', line 6 def self.source_root @source_root ||= File.(File.join(File.dirname(__FILE__), 'templates')) end |
Instance Method Details
#copy_initializer ⇒ Object
copy configuration
11 12 13 |
# File 'lib/generators/ckeditor/base/base_generator.rb', line 11 def copy_initializer template "ckeditor.rb", "config/initializers/ckeditor.rb" end |
#install_ckeditor ⇒ Object
copy ckeditor files
16 17 18 |
# File 'lib/generators/ckeditor/base/base_generator.rb', line 16 def install_ckeditor directory "ckeditor", "public/javascripts/ckeditor" end |