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

#application_name, #class_name, #configuration, #ember_path, #engine_extension, #engine_name, #handlebars_template_path, #rails_engine?

Instance Method Details

#create_route_filesObject



15
16
17
18
# File 'lib/generators/ember/route_generator.rb', line 15

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