mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
17 lines
255 B
Ruby
17 lines
255 B
Ruby
class VersionSerializer < ApplicationSerializer
|
|
|
|
attributes :number, :display_username, :created_at
|
|
|
|
def number
|
|
object[:number]
|
|
end
|
|
|
|
def display_username
|
|
object[:display_username]
|
|
end
|
|
|
|
def created_at
|
|
object[:created_at]
|
|
end
|
|
|
|
end
|