Class: RoutesJs::Generators::ModuleGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/routes_js/module/module_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_routes_moduleObject



14
15
16
17
# File 'lib/generators/routes_js/module/module_generator.rb', line 14

def generate_routes_module
  js_module = rails_application.assets["routesjs-rails"].to_s
  create_file(options[:output_file], js_module)
end

#show_post_installObject



19
20
21
# File 'lib/generators/routes_js/module/module_generator.rb', line 19

def show_post_install
  readme_message if behavior == :invoke
end