aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/referential.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/referential.rb')
-rw-r--r--app/models/referential.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb
index 919c92a2d..a05e3f065 100644
--- a/app/models/referential.rb
+++ b/app/models/referential.rb
@@ -21,6 +21,10 @@ class Referential < ActiveRecord::Base
Chouette::StopArea.scoped
end
+ def time_tables
+ Chouette::TimeTable.scoped
+ end
+
def switch
raise "Referential not created" if new_record?
Apartment::Database.switch(slug)