Class: Jax::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Jax::Generators::InstallGenerator
- Extended by:
- SourceRoot
- Includes:
- CoffeeGenerator
- Defined in:
- lib/generators/jax/install/install_generator.rb
Instance Method Summary collapse
- #create_jax_application_controller ⇒ Object
- #create_jax_application_helper ⇒ Object
- #route_jax_mount_point ⇒ Object
Methods included from SourceRoot
Methods included from CoffeeGenerator
Instance Method Details
#create_jax_application_controller ⇒ Object
18 19 20 |
# File 'lib/generators/jax/install/install_generator.rb', line 18 def create_jax_application_controller coffee_template_with_fallback "application_controller.js", 'app/assets/jax/controllers/application_controller.js' end |
#create_jax_application_helper ⇒ Object
22 23 24 |
# File 'lib/generators/jax/install/install_generator.rb', line 22 def create_jax_application_helper coffee_template_with_fallback "application_helper.js", 'app/assets/jax/helpers/application_helper.js' end |
#route_jax_mount_point ⇒ Object
14 15 16 |
# File 'lib/generators/jax/install/install_generator.rb', line 14 def route_jax_mount_point route %{mount Jax::Engine => "/jax" unless Rails.env == "production"} end |