Class: Jax::Generators::HelperGenerator
- Inherits:
-
NamedBase
- Object
- Rails::Generators::NamedBase
- NamedBase
- Jax::Generators::HelperGenerator
- Defined in:
- lib/generators/jax/helper/helper_generator.rb
Instance Method Summary collapse
Methods included from SourceRoot
Methods included from CoffeeGenerator
Instance Method Details
#create_helper ⇒ Object
6 7 8 9 |
# File 'lib/generators/jax/helper/helper_generator.rb', line 6 def create_helper coffee_template_with_fallback "helper.js", File.join('app/assets/jax/helpers', "#{underscored_helper_name}.js") end |
#create_spec ⇒ Object
11 12 13 14 |
# File 'lib/generators/jax/helper/helper_generator.rb', line 11 def create_spec coffee_template_with_fallback "helper_spec.js", File.join('spec/javascripts/jax/helpers', "#{underscored_helper_name}_spec.js") end |