module T3::Generators::GeneratorHelper

Private Instance Methods

create_component_files() click to toggle source
# File lib/generators/t3/generator_helper.rb, line 10
def create_component_files
  generator_name = self.class.generator_name

  template "#{generator_name}.js",
    File.join(install_path, generator_name.pluralize, "#{file_path}.js")
end
install_path() click to toggle source
# File lib/generators/t3/generator_helper.rb, line 6
def install_path
  'app/assets/javascripts'
end