Module: Hanber::Generators::GeneratorHelpers
- Included in:
- BootstrapGenerator, ScaffoldGenerator
- Defined in:
- lib/generators/hanber/generator_helpers.rb
Instance Method Summary collapse
Instance Method Details
#application_name ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/generators/hanber/generator_helpers.rb', line 9 def application_name if defined?(::Rails) && ::Rails.application ::Rails.application.class.name.split('::').first else "app" end end |
#ember_path ⇒ Object
5 6 7 |
# File 'lib/generators/hanber/generator_helpers.rb', line 5 def ember_path "app/assets/javascripts" end |