Add VotationType fields to admin poll question form
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
d1c1aa6691
commit
815a526d78
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user