2013-07-08 10:07:12 +02:00
|
|
|
class SpeakerSerializer < ActiveModel::Serializer
|
|
|
|
|
include ActionView::Helpers::TextHelper
|
|
|
|
|
|
2014-08-27 16:18:35 +02:00
|
|
|
attributes :name, :affiliation, :biography
|
2013-07-08 10:07:12 +02:00
|
|
|
|
|
|
|
|
def name
|
2014-06-23 19:07:50 +03:00
|
|
|
object.name
|
2013-07-22 11:54:27 +02:00
|
|
|
end
|
2013-07-08 10:07:12 +02:00
|
|
|
end
|