mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #524 from differentreality/remove_attachment
remove leftovers from event attachment removal
This commit is contained in:
commit
343694d076
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue