Sha256: d2ede71a0693bc566f098c1a3ac4be3efaf67563949a2b2828835e1550c7798c

Contents?: true

Size: 521 Bytes

Versions: 112

Compression:

Stored size: 521 Bytes

Contents

#
# Allow some application_helper methods to be used in the scoped form_for manner
#
class ActionView::Helpers::FormBuilder
  def field_container(method, options = {}, &block)
    @template.field_container(@object_name, method, options, &block)
  end

  def error_message_on(method, options = {})
    @template.error_message_on(@object_name, method, objectify_options(options))
  end
end

ActionView::Base.field_error_proc = proc { |html_tag, _instance| "<span class=\"field_with_errors\">#{html_tag}</span>".html_safe }

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
spree_backend-4.8.4 config/initializers/form_builder.rb
spree_backend-4.8.3 config/initializers/form_builder.rb
spree_backend-4.8.2 config/initializers/form_builder.rb
spree_backend-4.8.1 config/initializers/form_builder.rb
spree_backend-4.0.9 config/initializers/form_builder.rb
spree_backend-4.1.15 config/initializers/form_builder.rb
spree_backend-4.2.7 config/initializers/form_builder.rb
spree_backend-4.3.3 config/initializers/form_builder.rb
spree_backend-4.7.2 config/initializers/form_builder.rb
spree_backend-4.6.2 config/initializers/form_builder.rb
spree_backend-4.7.1 config/initializers/form_builder.rb
spree_backend-4.7.0 config/initializers/form_builder.rb
spree_backend-4.6.1 config/initializers/form_builder.rb
spree_backend-4.6.0 config/initializers/form_builder.rb
spree_backend-4.5.1 config/initializers/form_builder.rb
spree_backend-4.5.0 config/initializers/form_builder.rb
spree_backend-4.2.6 config/initializers/form_builder.rb
spree_backend-4.3.2 config/initializers/form_builder.rb
spree_backend-4.4.1 config/initializers/form_builder.rb
spree_backend-4.4.0 config/initializers/form_builder.rb