From 5a104cbcf2f001322dfcd948088f343ea5159141 Mon Sep 17 00:00:00 2001 From: Jan Sandbrink Date: Thu, 19 Mar 2015 15:16:50 +0100 Subject: [PATCH] fully qualify class for better dev mode --- lib/api/v3/attachments/attachment_representer.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/api/v3/attachments/attachment_representer.rb b/lib/api/v3/attachments/attachment_representer.rb index 83cc23ec76..3cc48d8fd9 100644 --- a/lib/api/v3/attachments/attachment_representer.rb +++ b/lib/api/v3/attachments/attachment_representer.rb @@ -76,7 +76,9 @@ module API property :downloads, render_nil: true property :created_on, as: 'createdAt', - getter: -> (*) { DateTimeFormatter::format_datetime(created_on) } + getter: -> (*) { + ::API::V3::Utilities::DateTimeFormatter::format_datetime(created_on) + } def _type 'Attachment'