fix in voting

This commit is contained in:
Stella Rouzi 2014-07-27 10:02:18 +03:00
parent 3fc9e43f7d
commit 92fbabd246

View file

@ -21,7 +21,7 @@ class User < ActiveRecord::Base
has_many :events, -> { uniq }, through: :event_users has_many :events, -> { uniq }, through: :event_users
has_many :registrations, dependent: :destroy has_many :registrations, dependent: :destroy
has_many :votes, dependent: :destroy has_many :votes, dependent: :destroy
has_many :voted_events, through: :votes, source: :events has_many :voted_events, through: :votes, source: :event
accepts_nested_attributes_for :roles accepts_nested_attributes_for :roles