From 16d7b3e93c4a61bc012801934b4b35403c6380bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 27 Jan 2012 19:57:22 +0100 Subject: [PATCH] Bootstrap info on install. --- lib/generators/simple_form/install_generator.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/generators/simple_form/install_generator.rb b/lib/generators/simple_form/install_generator.rb index 9cbfabef..867b1458 100644 --- a/lib/generators/simple_form/install_generator.rb +++ b/lib/generators/simple_form/install_generator.rb @@ -6,6 +6,13 @@ module SimpleForm class_option :template_engine, :desc => 'Template engine to be invoked (erb, haml or slim).' class_option :bootstrap, :type => :boolean, :desc => 'Add the Twitter Bootstrap wrappers to the SimpleForm initializer.' + def info_bootstrap + return if options.bootstrap? + puts "Simple Form 2 supports Twitter bootstrap. In case you want to " \ + "generate bootstrap configuration, please re-run this " \ + "generator passing --bootstrap as option." + end + def copy_config directory 'config' end