Class: Ember::Generators::ModelGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Ember::Generators::ModelGenerator
- Includes:
- GeneratorHelpers
- Defined in:
- lib/generators/ember/model_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_model_files ⇒ Object
17 18 19 20 |
# File 'lib/generators/ember/model_generator.rb', line 17 def create_model_files file_path = File.join(ember_path, 'models', class_path, "#{file_name.dasherize}.#{engine_extension}") template "model.#{engine_extension}", file_path end |