Skip to content

Commit

Permalink
docs, adjust version numbers in generator help text. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Sep 24, 2014
1 parent 88e96db commit a60cf4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/simple_form/install_generator.rb
Expand Up @@ -5,11 +5,11 @@ class InstallGenerator < Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)
class_option :template_engine, desc: 'Template engine to be invoked (erb, haml or slim).'
class_option :bootstrap, type: :boolean, desc: 'Add the Bootstrap wrappers to the SimpleForm initializer.'
class_option :foundation, type: :boolean, desc: 'Add the Zurb Foundation 3 wrappers to the SimpleForm initializer.'
class_option :foundation, type: :boolean, desc: 'Add the Zurb Foundation 5 wrappers to the SimpleForm initializer.'

def info_bootstrap
return if options.bootstrap? || options.foundation?
puts "SimpleForm 2 supports Bootstrap and Zurb Foundation 3. If you want "\
puts "SimpleForm 3 supports Bootstrap and Zurb Foundation 5. If you want "\
"a configuration that is compatible with one of these frameworks, then please " \
"re-run this generator with --bootstrap or --foundation as an option."
end
Expand Down

0 comments on commit a60cf4c

Please sign in to comment.