User/Person models merge

This commit is contained in:
Stella Rouzi 2014-06-23 19:07:50 +03:00
parent 66b84e3660
commit 23bf55b66c
80 changed files with 1064 additions and 1221 deletions

View file

@ -1,14 +1,10 @@
class SpeakerSerializer < ActiveModel::Serializer
include ActionView::Helpers::TextHelper
attributes :guid, :name, :full_name, :company, :biography
attributes :guid, :name, :affiliation, :biography
def name
object.public_name
end
def full_name
[object.first_name, object.last_name].join(" ")
object.name
end
def biography