Adding for_enterprises scope on enterprise fee

This commit is contained in:
Rob Harrington
2015-04-06 10:24:40 +10:00
parent 7448d41b27
commit 7eb735f87e

View File

@@ -20,6 +20,7 @@ class EnterpriseFee < ActiveRecord::Base
scope :for_enterprise, lambda { |enterprise| where(enterprise_id: enterprise) }
scope :for_enterprises, lambda { |enterprises| where(enterprise_id: enterprises) }
scope :managed_by, lambda { |user|
if user.has_spree_role?('admin')