From e9c8547ca3ea0164b223a0d72b14b1fbfd2f667e Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Fri, 26 Sep 2014 14:48:37 +1000 Subject: [PATCH] fix enterprsie model logic --- app/models/enterprise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index ecd948aa7a..a81655a1de 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -215,7 +215,7 @@ class Enterprise < ActiveRecord::Base # Type: full - single - profile becomes Sells: all - own - none # Remove this return later. return "none" if !is_distributor || type == "profile" - return "own" if suppliers == [self] || type == "single" + return "own" if type == "single" || suppliers == [self] "all" end