From 150b79cff9c24cbaab8cfd87f3c640b4f5fdf51b Mon Sep 17 00:00:00 2001 From: Michel Etienne Date: Thu, 12 Jul 2012 08:05:13 +0200 Subject: add parameters to gtfs export --- app/models/referential.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/models/referential.rb') diff --git a/app/models/referential.rb b/app/models/referential.rb index 35d4e9141..782275813 100644 --- a/app/models/referential.rb +++ b/app/models/referential.rb @@ -11,6 +11,14 @@ class Referential < ActiveRecord::Base has_many :imports, :dependent => :destroy has_many :exports, :dependent => :destroy + after_initialize :init_time_zone + + def init_time_zone + if time_zone.nil? + self.time_zone = "Paris" + end + end + def human_attribute_name(*args) self.class.human_attribute_name(*args) end -- cgit v1.2.3