Module: Presenters::Timeable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Search::ActivityPresenter, Search::BudgetPresenter, Search::CertificationPresenter, Search::ContactPresenter, Search::CouponPresenter, Search::CreditApplicationPresenter, Search::CreditMemoPresenter, Search::CustomerPresenter, Search::DeliveryPresenter, Search::EmployeeReviewPresenter, Search::ExchangeRatePresenter, Search::InvoicePresenter, Search::ItAssetPresenter, Search::ItemLedgerEntryPresenter, Search::ItemPresenter, Search::LedgerEntryPresenter, Search::LocatorRecordPresenter, Search::OpportunityPresenter, Search::OrderPresenter, Search::OutgoingPaymentPresenter, Search::ProductCatalogPresenter, Search::PurchaseOrderPresenter, Search::QuotePresenter, Search::ReceiptPresenter, Search::RmaPresenter, Search::RoomConfigurationPresenter, Search::SalesCommissionPresenter, Search::ServiceJobPresenter, Search::SupplierItemPresenter, Search::SupportCasePresenter, Search::VoucherPresenter
- Defined in:
- app/concerns/presenters/timeable.rb
Overview
Date/time rendering helpers for record presenters — created_at /
updated_at formatted via the view helper's render_datetime.
Instance Method Summary collapse
-
#created_at ⇒ String
Formatted
created_attimestamp of the wrapped record. -
#updated_at ⇒ String
Formatted
updated_attimestamp of the wrapped record.
Instance Method Details
#created_at ⇒ String
Formatted created_at timestamp of the wrapped record.
13 14 15 |
# File 'app/concerns/presenters/timeable.rb', line 13 def created_at h.render_datetime(r.created_at) end |
#updated_at ⇒ String
Formatted updated_at timestamp of the wrapped record.
20 21 22 |
# File 'app/concerns/presenters/timeable.rb', line 20 def updated_at h.render_datetime(r.updated_at) end |