diff options
Diffstat (limited to 'app/models/chouette/access_point.rb')
| -rw-r--r-- | app/models/chouette/access_point.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/chouette/access_point.rb b/app/models/chouette/access_point.rb index c81867b52..4a1ae8a0e 100644 --- a/app/models/chouette/access_point.rb +++ b/app/models/chouette/access_point.rb @@ -34,6 +34,10 @@ class Chouette::AccessPoint < Chouette::ActiveRecord @referential ||= Referential.where(:slug => Apartment::Tenant.current).first! end + def referential + @referential ||= Referential.where(:slug => Apartment::Tenant.current).first! + end + def combine_lat_lng if self.latitude.nil? || self.longitude.nil? "" |
