Sha256: 9f60ce4e25e9cf29c24d1c88062bb052bce7640d6d7b22d22ce928517e5ecfb3

Contents?: true

Size: 288 Bytes

Versions: 54

Compression:

Stored size: 288 Bytes

Contents

ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
  if html_tag =~ /\<label/
    %(<div class="error">#{ html_tag }</div>)
  else
    %(<div class="error">#{ html_tag }<small class="error">#{ Array(instance.error_message).join(', ') }</small></div>)
  end.html_safe
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
push_type_admin-0.12.1 config/initializers/inline_error_messages.rb
push_type_admin-0.12.0 config/initializers/inline_error_messages.rb
push_type_admin-0.12.0.beta.1 config/initializers/inline_error_messages.rb
push_type_admin-0.11.2 config/initializers/inline_error_messages.rb
push_type_admin-0.11.1 config/initializers/inline_error_messages.rb
push_type_admin-0.11.0.beta.2 config/initializers/inline_error_messages.rb
push_type_admin-0.11.0.beta.1 config/initializers/inline_error_messages.rb
push_type_admin-0.10.4 config/initializers/inline_error_messages.rb
push_type_admin-0.10.3 config/initializers/inline_error_messages.rb
push_type_admin-0.10.2 config/initializers/inline_error_messages.rb
push_type_admin-0.10.1 config/initializers/inline_error_messages.rb
push_type_admin-0.10.0 config/initializers/inline_error_messages.rb
push_type_admin-0.10.0.beta.5 config/initializers/inline_error_messages.rb
push_type_admin-0.10.0.beta.3 config/initializers/inline_error_messages.rb
push_type_admin-0.9.5 config/initializers/inline_error_messages.rb
push_type_admin-0.9.3 config/initializers/inline_error_messages.rb
push_type_admin-0.9.2 config/initializers/inline_error_messages.rb
push_type_admin-0.9.1 config/initializers/inline_error_messages.rb
push_type_admin-0.9.0 config/initializers/inline_error_messages.rb
push_type_admin-0.9.0.beta.4 config/initializers/inline_error_messages.rb