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