aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/referential.rb
diff options
context:
space:
mode:
authorMichel Etienne2012-07-12 08:05:13 +0200
committerMichel Etienne2012-07-12 08:05:13 +0200
commit150b79cff9c24cbaab8cfd87f3c640b4f5fdf51b (patch)
tree1a46591d0ff6a7e1f49d04b39dd2c0112b90b196 /app/models/referential.rb
parent3ee2295d14765aa8a8aecb88e96e296bc2112607 (diff)
downloadchouette-core-150b79cff9c24cbaab8cfd87f3c640b4f5fdf51b.tar.bz2
add parameters to gtfs export
Diffstat (limited to 'app/models/referential.rb')
-rw-r--r--app/models/referential.rb8
1 files changed, 8 insertions, 0 deletions
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