Subscription on Registration, Independent Subscription without registration

This commit is contained in:
Gopesh Tulsyan 2014-07-25 13:13:35 +05:30
parent 41fc21f7f4
commit a39f4cf0dd
9 changed files with 71 additions and 33 deletions

View file

@ -50,6 +50,7 @@ class Conference < ActiveRecord::Base
has_many :campaigns, dependent: :destroy
has_many :commercials, as: :commercialable, dependent: :destroy
has_many :subscriptions, dependent: :destroy
belongs_to :venue
accepts_nested_attributes_for :rooms, reject_if: proc { |r| r['name'].blank? }, allow_destroy: true
accepts_nested_attributes_for :tracks, reject_if: proc { |r| r['name'].blank? }, allow_destroy: true