Class: Ember::Generators::RouteGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
GeneratorHelpers
Defined in:
lib/generators/ember/route_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?, #require_name

Instance Method Details

#create_route_filesObject


12
13
14
15
# File 'lib/generators/ember/route_generator.rb', line 12

def create_route_files
  file_path = File.join(app_path, 'routes', class_path, "#{file_name}.es6")
  template "route.es6", file_path
end