Sha256: 7260dd8eb58be61faebf19ba37393f282193b5230322038f56c5cef14b35f0d8
Contents?: true
Size: 465 Bytes
Versions: 4
Compression:
Stored size: 465 Bytes
Contents
- if target.errors.any? - gender ||= (target.class.name =~ /[ad]$/ ) ? "female" : "male" - model_name ||= target.class.name.underscore.humanize.downcase #error_explanation %h2 = t('activerecord.errors.template.header', :count => target.errors.count, :model => model_name, :article => (gender == "male" ? "El" : "La")) = t('activerecord.errors.template.body') %ul - target.errors.full_messages.each do |msg| %li = msg
Version data entries
4 entries across 4 versions & 1 rubygems