Sha256: 39925e3ff494c60c976b44d5b1cf99391d9c206b9aa8f9cc7f75acdd2e464b9d
Contents?: true
Size: 742 Bytes
Versions: 4
Compression:
Stored size: 742 Bytes
Contents
class Tramway::Event::ParticipantDecorator < ::Tramway::Core::ApplicationDecorator class << self def collections [ :all ] end end decorate_association :event def title if object.values.present? first_name = object.values['Фамилия'] last_name = object.values['Имя'] patronymic = object.values['Отчество'] "#{first_name} #{last_name} #{patronymic}" end end def values content_tag :table, class: :table do object.values&.each do |key, value| concat(content_tag(:tr) do concat(content_tag(:td) do key end) concat(content_tag(:td) do value end) end) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems