aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorRobert2018-01-08 11:47:03 +0100
committerRobert2018-01-08 12:30:04 +0100
commit09e818a6a63ebe5ae08045a2c67e20ae578f640e (patch)
tree4ac2813b7063dd18817117e8d3e75ac925b4e622 /app/models
parent0a69d409cded29a45ee3857f0a49c9a7a51d858a (diff)
downloadchouette-core-09e818a6a63ebe5ae08045a2c67e20ae578f640e.tar.bz2
Refs: #5413@0.5h; Fixed broken delegation to #archived_or_finalised?
Diffstat (limited to 'app/models')
-rw-r--r--app/models/referential.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb
index 5aa360cba..75c1889ca 100644
--- a/app/models/referential.rb
+++ b/app/models/referential.rb
@@ -422,11 +422,13 @@ class Referential < ActiveRecord::Base
GeoRuby::SimpleFeatures::Geometry.from_ewkt(bounds.present? ? bounds : default_bounds ).envelope
end
- # Archive
- def archived?
- archived_at != nil
+ # For Delegator
+ def archived_or_finalised?
+ archived_at || in_referential_suite?
end
+ # Archive
+
def archive!
# self.archived = true
touch :archived_at