lib/facades/support/simple_form.rb in facades-1.0.3 vs lib/facades/support/simple_form.rb in facades-1.0.4

- old
+ new

@@ -6,11 +6,11 @@ config.label_text = lambda { |label, required| "#{label} #{required}" } config.required_by_default = false config.country_priority = 'United States' config.default_input_size = 30 - config.wrappers tag: :li, class: 'field', error_class: 'invalid-field' do |b| + config.wrappers :facades, tag: :li, class: 'field', error_class: 'invalid-field' do |b| b.use :html5 b.use :placeholder b.optional :maxlength b.optional :pattern @@ -19,14 +19,15 @@ b.use :label_input, wrap_with: { error_class: 'invalid', tag: false } b.use :hint, wrap_with: { tag: :span, class: :hint } b.use :error, wrap_with: { tag: :span, class: :error } end - end - - SimpleForm.html5 = true - SimpleForm.error_method = :first - SimpleForm.error_notification_id = nil - SimpleForm.browser_validations = false - SimpleForm.collection_wrapper_tag = nil + + config.html5 = true + config.error_method = :first + config.error_notification_id = nil + config.browser_validations = false + config.collection_wrapper_tag = nil + + end end