Sha256: 5edc021a4770a0ad17024c21c40064efe6ac8ee0b2e8ae94ee22bbffc149b42d

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

module Decidim
  module Posts
    class Answer < Feeds::ApplicationRecord
      include Decidim::TranslatableResource
      include Decidim::TranslatableAttributes

      belongs_to :question, class_name: "Decidim::Posts::Question", foreign_key: "decidim_posts_question_id"
      has_many :user_answers, class_name: "Decidim::Posts::UserAnswer", dependent: :destroy, foreign_key: "decidim_posts_answer_id"

      translatable_fields :title
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-posts-1.0.0 app/models/decidim/posts/answer.rb