mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05:00
17 lines
210 B
Ruby
17 lines
210 B
Ruby
|
class EmbeddableHostSerializer < ApplicationSerializer
|
||
|
attributes :id, :host, :category_id
|
||
|
|
||
|
def id
|
||
|
object.id
|
||
|
end
|
||
|
|
||
|
def host
|
||
|
object.host
|
||
|
end
|
||
|
|
||
|
def category_id
|
||
|
object.category_id
|
||
|
end
|
||
|
end
|
||
|
|