Class: Redactor::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Redactor::Generators::ConfigGenerator
- Defined in:
- lib/generators/redactor/config_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
7 8 9 |
# File 'lib/generators/redactor/config_generator.rb', line 7 def self.source_root @source_root ||= File.(File.join(File.dirname(__FILE__), 'templates')) end |
Instance Method Details
#create_config ⇒ Object
12 13 14 15 |
# File 'lib/generators/redactor/config_generator.rb', line 12 def create_config template "config.js", File.join('app/assets/javascripts/redactor-rails', "config.js") end |