Merge pull request #524 from differentreality/remove_attachment

remove leftovers from event attachment removal
This commit is contained in:
Stella Rouzi 2014-11-12 13:45:51 +02:00
commit 343694d076

View file

@ -10,7 +10,6 @@ class Event < ActiveRecord::Base
after_create :set_week
has_many :event_users, dependent: :destroy
has_many :event_attachments, dependent: :destroy
has_many :users, through: :event_users
has_many :speakers, through: :event_users, source: :user
has_many :votes, dependent: :destroy
@ -26,7 +25,6 @@ class Event < ActiveRecord::Base
belongs_to :conference
accepts_nested_attributes_for :event_users, allow_destroy: true
accepts_nested_attributes_for :event_attachments, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :users
before_create :generate_guid