aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/chouette/access_point.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-11-16 16:44:37 +0100
committerGuillaume2017-11-16 16:44:37 +0100
commit3f39b62beb9ff7af741696a6c3c7e87737c3a257 (patch)
treecbb89c8eb78fa9349bf499ffc01483d25554c3d0 /app/models/chouette/access_point.rb
parente5fcb0cc0728cbb673c1f5cf346e865fbbbc593a (diff)
downloadchouette-core-3f39b62beb9ff7af741696a6c3c7e87737c3a257.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/access_point.rb')
-rw-r--r--app/models/chouette/access_point.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/chouette/access_point.rb b/app/models/chouette/access_point.rb
index 4a1ae8a0e..679d3862b 100644
--- a/app/models/chouette/access_point.rb
+++ b/app/models/chouette/access_point.rb
@@ -5,9 +5,9 @@ class Chouette::AccessPoint < Chouette::ActiveRecord
# FIXME http://jira.codehaus.org/browse/JRUBY-6358
self.primary_key = "id"
- include StifReflexAttributesSupport
include Geokit::Mappable
include ProjectionFields
+ include ObjectidSupport
has_many :access_links, :dependent => :destroy
belongs_to :stop_area
@@ -29,11 +29,6 @@ class Chouette::AccessPoint < Chouette::ActiveRecord
[:street_name, :country_code, :comment, :long_lat_type, :zip_code, :city_name]
end
-
- def referential
- @referential ||= Referential.where(:slug => Apartment::Tenant.current).first!
- end
-
def referential
@referential ||= Referential.where(:slug => Apartment::Tenant.current).first!
end