Initial commit
This commit is contained in:
12
app/api/v2/entities/base.rb
Normal file
12
app/api/v2/entities/base.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
module V2
|
||||
module Entities
|
||||
class Base < Grape::Entity
|
||||
format_with(:iso_timestamp) { |t| t.iso8601 if t }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user