mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
14 lines
267 B
Ruby
14 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PollAnswer < ApplicationRecord
|
|
include Diaspora::Federated::Base
|
|
include Diaspora::Fields::Guid
|
|
|
|
belongs_to :poll
|
|
has_many :poll_participations
|
|
|
|
validates :answer, presence: true
|
|
|
|
self.include_root_in_json = false
|
|
end
|