app/models/sales_campaign.rb in e9_crm-0.1.10 vs app/models/sales_campaign.rb in e9_crm-0.1.11

- old
+ new

@@ -4,10 +4,10 @@ # class SalesCampaign < Campaign money_columns :sales_fee belongs_to :sales_person, :class_name => 'Contact' - validates :sales_person, :presence => true + validates :sales_person, :presence => { :if => lambda {|x| x.type == 'SalesCampaign' } } ## # The sum cost of this campaign # def cost