module MobileRailsJqm module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc < "Application.configure do" do "\n\n # Added by mobile_rails_jqm, precompile jQuery Related assets in production."+ "\n config.assets.precompile += %w(mobile.css mobile.js)\n" end end protected def add_options!(opt) opt.separator '' opt.separator 'Options:' opt.on("--haml", "Generate HAML for view, and SASS for stylesheet.") { |v| options[:haml] = v } end end end end