Sha256: 7e9ab6dfcb852bcd0477b80f7849ecc7d110434c4240887a8503a704a10cd33d
Contents?: true
Size: 591 Bytes
Versions: 4
Compression:
Stored size: 591 Bytes
Contents
class JeraPush::MessagePresenter < BasePresenter def list_content JSON.pretty_generate({ title: item.title, body: item.body }) end def display_content JSON.pretty_generate({ title: item.title, body: item.body, data: item.data }) end def display_created_at item.created_at.strftime('%d/%m/%Y %H:%M') end def show_link helpers.link_to( helpers.t('jera_push.admin.buttons.details'), Rails.application.routes.url_helpers.jera_push_admin_message_path(item), class: 'waves-effect waves-light btn' ) end end
Version data entries
4 entries across 4 versions & 1 rubygems