docs, adjust version numbers in generator help text. [ci skip]
This commit is contained in:
parent
88e96db1d7
commit
a60cf4ce21
|
@ -5,11 +5,11 @@ module SimpleForm
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue