Sha256: 547d795ccbf7d41dae0e1db770581cb15d672d24cf1137738baa31e012b5d299
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
class Tramway::Event::ParticipantDecorator < ::Tramway::Core::ApplicationDecorator class << self def collections [ :all ] end end 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
3 entries across 3 versions & 1 rubygems