Module: Ember::GeneratorHelpers

Included in:
ControllerGenerator, ModelGenerator, ViewGenerator
Defined in:
lib/generators/ember/generator_helpers.rb

Instance Method Summary collapse

Instance Method Details

#application_nameObject



2
3
4
# File 'lib/generators/ember/generator_helpers.rb', line 2

def application_name
  Rails.application.class.name.split('::').first
end

#ember_pathObject



6
7
8
# File 'lib/generators/ember/generator_helpers.rb', line 6

def ember_path
  "app/assets/javascripts/ember"
end

#spec_pathObject



10
11
12
# File 'lib/generators/ember/generator_helpers.rb', line 10

def spec_path
  "spec/javascripts"
end