diff options
| author | Zog | 2018-02-01 15:56:32 +0100 | 
|---|---|---|
| committer | Zog | 2018-02-01 15:56:32 +0100 | 
| commit | 931850cdcfde24992b62301c3ddba9dbd1397eac (patch) | |
| tree | e0de05f8caded80dddf1dc61f43e2f3637bf3496 /app/models | |
| parent | 51633814820e624e7d77e6cb53da8f0eb3243ff2 (diff) | |
| download | chouette-core-931850cdcfde24992b62301c3ddba9dbd1397eac.tar.bz2 | |
Refs #5758; Set a default kind for StopAreas
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/chouette/stop_area.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb index bb8747faa..cf2afbc73 100644 --- a/app/models/chouette/stop_area.rb +++ b/app/models/chouette/stop_area.rb @@ -47,6 +47,10 @@ module Chouette      validate :parent_area_type_must_be_greater      validate :area_type_of_right_kind +    after_initialize do +      self.kind ||= :commercial +    end +      def self.nullable_attributes        [:registration_number, :street_name, :country_code, :fare_code,        :nearest_topic_name, :comment, :long_lat_type, :zip_code, :city_name, :url, :time_zone] | 
