diff options
| author | Michel Etienne | 2012-04-12 16:19:52 +0200 | 
|---|---|---|
| committer | Michel Etienne | 2012-04-12 16:19:52 +0200 | 
| commit | 370f8c62e32c3a94be84834b9a8c3b7959c27d3e (patch) | |
| tree | 5b6a809117a02062404d83b72897e1b7ef4f1101 /app/models/referential.rb | |
| parent | 3f85a06d82eac57548c94adfc2bce6cba5889445 (diff) | |
| download | chouette-core-370f8c62e32c3a94be84834b9a8c3b7959c27d3e.tar.bz2 | |
add timetables
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 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)  | 
