Bootstrap info on install.

This commit is contained in:
José Valim 2012-01-27 19:57:22 +01:00
parent 099efb4d55
commit 16d7b3e93c
1 changed files with 7 additions and 0 deletions

View File

@ -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