Sha256: 597f8f0fffa56d0887f9aac94b732a0acb08f5fea34423b446686aba76961ff1
Contents?: true
Size: 428 Bytes
Versions: 79
Compression:
Stored size: 428 Bytes
Contents
module Tenon class ContactDecorator < ApplicationDecorator def sent_date @object.created_at.strftime('%B %e, %Y at %l:%M %p') end def error_message errors = [] @object.errors.full_messages.each { |error| errors << "<li>#{error}</li>" } "<div class='error-explanation' id='error-explanation'>There were problems with the following fields:<ul>#{errors.join('')}<ul></div>" end end end
Version data entries
79 entries across 79 versions & 1 rubygems