fully qualify class for better dev mode

pull/2721/head
Jan Sandbrink 10 years ago
parent d56b9c558b
commit 5a104cbcf2
  1. 4
      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'

Loading…
Cancel
Save