Class: Ember::Generators::ResourceGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
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_filesObject



22
23
24
25
26
27
# File 'lib/generators/ember/resource_generator.rb', line 22

def create_resource_files
  invoke('ember:route', [name], options) unless options[:skip_route]
  invoke('ember:controller', [name], options)
  invoke('ember:view', [name], options)
  invoke('ember:template', [name], options)
end