diff options
| author | cedricnjanga | 2017-11-16 16:44:37 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-22 12:41:57 +0100 |
| commit | 31db1bba72800bddfa5dc9db4419ba95178dc4ff (patch) | |
| tree | e6bfb60e0f20ae71d3153fcc9a84be7b9680eb68 /app/models/chouette/stop_area.rb | |
| parent | 7c032665a81d9b81f6267d9bb133e8f0ec3b9e21 (diff) | |
| download | chouette-core-31db1bba72800bddfa5dc9db4419ba95178dc4ff.tar.bz2 | |
Add Cédric new objectid concerns
objectid_support handles reading and writing object_ids
objectid_formater_support gets the right formater class
include these concerns in chouette models
Remove StifNetexAttributSupport modules because these are handled by the new objectid concerns
Add a objectid and formater classes for each format type
Add objectid formats to the factories
Modify somes specs for object_ids but there are still a number of failling tests
Diffstat (limited to 'app/models/chouette/stop_area.rb')
| -rw-r--r-- | app/models/chouette/stop_area.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb index f907f6777..d96381ee8 100644 --- a/app/models/chouette/stop_area.rb +++ b/app/models/chouette/stop_area.rb @@ -26,7 +26,6 @@ module Chouette has_and_belongs_to_many :routing_stops, :class_name => 'Chouette::StopArea', :foreign_key => "parent_id", :association_foreign_key => "child_id", :join_table => "stop_areas_stop_areas", :order => "stop_areas.name" belongs_to :stop_area_referential - validates_presence_of :stop_area_referential_id acts_as_tree :foreign_key => 'parent_id', :order => "name" |
