diff options
| author | cedricnjanga | 2017-12-19 16:21:06 +0100 |
|---|---|---|
| committer | Luc Donnet | 2017-12-21 13:55:49 +0100 |
| commit | 43f8c76522288a0328d520dfc753ed173fc84964 (patch) | |
| tree | e067ae1f57fb34a5a82425b1e278507ccfdba4ae /app/models/referential.rb | |
| parent | 723bee2cafff84c0b948f85ed450408d6cbc866a (diff) | |
| download | chouette-core-43f8c76522288a0328d520dfc753ed173fc84964.tar.bz2 | |
BusinessCalendar => PurchaseWindow
belongs_to referential
Diffstat (limited to 'app/models/referential.rb')
| -rw-r--r-- | app/models/referential.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb index 851a33653..122af65a1 100644 --- a/app/models/referential.rb +++ b/app/models/referential.rb @@ -128,6 +128,10 @@ class Referential < ActiveRecord::Base Chouette::RoutingConstraintZone.all end + def purchase_windows + Chouette::PurchaseWindow.all + end + before_validation :define_default_attributes def define_default_attributes |
