Class: Jax::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
SourceRoot
Includes:
CoffeeGenerator
Defined in:
lib/generators/jax/install/install_generator.rb

Instance Method Summary collapse

Methods included from SourceRoot

source_root

Methods included from CoffeeGenerator

included

Instance Method Details

#create_jax_application_controllerObject



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_helperObject



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_pointObject



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