app/models/contact.rb in e9_crm-0.1.7 vs app/models/contact.rb in e9_crm-0.1.8

- old
+ new

@@ -158,9 +158,11 @@ else where("1=0") end } + scope :deal_owners, lambda { scoped } + def self.available_to_deal(deal) return all unless deal.persisted? sql = <<-SQL SELECT distinct contacts.* FROM `contacts`