Class: Ember::Generators::AdapterGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
GeneratorHelpers
Defined in:
lib/generators/ember/adapter_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_adapter_filesObject



17
18
19
20
# File 'lib/generators/ember/adapter_generator.rb', line 17

def create_adapter_files
  file_path = File.join(ember_path, 'adapters', class_path, "#{file_name}.#{engine_extension}")
  template "adapter.#{engine_extension}", file_path
end