rubycentral/cfp-app

View on GitHub
app/serializers/proposal_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ProposalSerializer < ActiveModel::Serializer
  attributes :title, :abstract, :review_tags, :id, :track, :video_url, :slides_url, :custom_fields
  has_many :speakers

  def review_tags
    object.review_tags
  end

  def track
    object.track.name if object.track
  end
end