diff options
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/referential.rb | 8 |
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 |
