Add VotationType fields to admin poll question form

This commit is contained in:
decabeza
2022-08-30 13:13:33 +02:00
committed by Senén Rodero Rodríguez
parent d1c1aa6691
commit 815a526d78
13 changed files with 129 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ module Questionable
included do
has_one :votation_type, as: :questionable, dependent: :destroy
accepts_nested_attributes_for :votation_type
delegate :max_votes, :multiple?, :vote_type, to: :votation_type, allow_nil: true
end