discourse/app/serializers/version_serializer.rb

18 lines
255 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06:00
class VersionSerializer < ApplicationSerializer
attributes :number, :display_username, :created_at
2013-02-05 13:16:51 -06:00
def number
object[:number]
end
def display_username
object[:display_username]
end
def created_at
object[:created_at]
end
end