Class: Ember::Generators::HelperGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
GeneratorHelpers
Defined in:
lib/generators/ember/helper_generator.rb

Instance Method Summary collapse

Methods included from GeneratorHelpers

#app_path, #application_name, #class_name, #config_path, #configuration, #engine_name, #handlebars_template_path, #javascript_assets_path, #rails_engine?

Instance Method Details

#create_helper_filesObject



11
12
13
14
# File 'lib/generators/ember/helper_generator.rb', line 11

def create_helper_files
  file_path = File.join(app_path, 'helpers', class_path, "#{file_name}.js")
  template 'helper.js', file_path
end