class Redactor2::Generators::ConfigGenerator
Public Class Methods
source_root()
click to toggle source
# File lib/generators/redactor2/config_generator.rb, line 8 def self.source_root @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) end
Public Instance Methods
create_config()
click to toggle source
# File lib/generators/redactor2/config_generator.rb, line 12 def create_config template 'config.js', File.join('app/assets/javascripts/redactor2_rails', 'config.js') end