Class: Ember::Generators::RouteGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Ember::Generators::RouteGenerator
- 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_files ⇒ Object
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 |