Class: Ember::Generators::InstanceInitializerGenerator

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



18
19
20
21
22
23
# File 'lib/generators/ember/instance_initializer_generator.rb', line 18

def create_instance_initializer_files
  file_path = File.join(ember_path, 'instance-initializers', class_path,
                        "#{file_name.dasherize}.#{engine_extension}")

  template "instance-initializer.#{engine_extension}", file_path
end