Class: Ember::Generators::ResourceGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Ember::Generators::ResourceGenerator
- Includes:
- GeneratorHelpers
- Defined in:
- lib/generators/ember/resource_generator.rb
Instance Method Summary collapse
Methods included from GeneratorHelpers
#application_name, #class_name, #configuration, #ember_path, #engine_extension, #engine_name, #handlebars_template_path, #javascript_engine, #rails_engine?
Instance Method Details
#create_resource_files ⇒ Object
22 23 24 25 26 27 |
# File 'lib/generators/ember/resource_generator.rb', line 22 def create_resource_files invoke('ember:route', [name], ) unless [:skip_route] invoke('ember:controller', [name], ) invoke('ember:view', [name], ) invoke('ember:template', [name], ) end |