aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorXinhui2016-09-19 14:52:28 +0200
committerXinhui2016-09-19 14:52:28 +0200
commitfea3d9f9ed8cfd71b01f75218655957b2589a47c (patch)
tree59fd922e8a15774acca73a69ea7ab9d5d7dfb937 /app/models
parent011a1c85d77757cddccce66fabe3a29c625ff41d (diff)
downloadchouette-core-fea3d9f9ed8cfd71b01f75218655957b2589a47c.tar.bz2
Fix store reflex objectid without referential prefix
Refs #1627
Diffstat (limited to 'app/models')
-rw-r--r--app/models/chouette/stop_area.rb3
-rw-r--r--app/models/concerns/stop_area_restrictions.rb1
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb
index 3be815499..c396a8c0f 100644
--- a/app/models/chouette/stop_area.rb
+++ b/app/models/chouette/stop_area.rb
@@ -8,7 +8,8 @@ class Chouette::StopArea < Chouette::ActiveRecord
include ProjectionFields
include StopAreaRestrictions
- include DefaultAttributesSupport
+ # Refs #1627
+ # include DefaultAttributesSupport
include StopAreaReferentialSupport
has_many :stop_points, :dependent => :destroy
diff --git a/app/models/concerns/stop_area_restrictions.rb b/app/models/concerns/stop_area_restrictions.rb
index 38a57b55a..96f0507d6 100644
--- a/app/models/concerns/stop_area_restrictions.rb
+++ b/app/models/concerns/stop_area_restrictions.rb
@@ -23,7 +23,6 @@ module StopAreaRestrictions
included do
include ObjectidRestrictions
-
with_options if: :commercial_and_physical_hub_restricted? do |sa|
# HUB-23
sa.validate :specific_objectid