From 9c4ed5f0922bc715a02a0fbf8f4b4ac53df20f5a Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 1 Jul 2015 12:56:04 +0800 Subject: [PATCH] Enterprises have billable_periods --- app/models/enterprise.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 82f23eb4dd..a0b8e91c40 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -34,6 +34,7 @@ class Enterprise < ActiveRecord::Base has_many :distributor_shipping_methods, foreign_key: :distributor_id has_many :shipping_methods, through: :distributor_shipping_methods has_many :customers + has_many :billable_periods delegate :latitude, :longitude, :city, :state_name, :to => :address