8 lines
176 B
Ruby
8 lines
176 B
Ruby
|
class AlertSerializer < ApplicationSerializer
|
||
|
attributes :created_at, :id, :priority, :problem_tag, :updated_at, :slug
|
||
|
|
||
|
def created_at
|
||
|
object.created_at.to_i
|
||
|
end
|
||
|
end
|