Added Subscription model to send emails

This commit is contained in:
Gopesh Tulsyan 2014-07-24 21:13:03 +05:30
parent ac25561523
commit 41fc21f7f4
5 changed files with 23 additions and 2 deletions

View file

@ -49,7 +49,7 @@ class Conference < ActiveRecord::Base
has_many :targets, dependent: :destroy
has_many :campaigns, dependent: :destroy
has_many :commercials, as: :commercialable, dependent: :destroy
belongs_to :venue
has_many :subscriptions, dependent: :destroy
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