diff options
| author | Robert | 2018-01-08 11:47:03 +0100 | 
|---|---|---|
| committer | Robert | 2018-01-08 12:30:04 +0100 | 
| commit | 09e818a6a63ebe5ae08045a2c67e20ae578f640e (patch) | |
| tree | 4ac2813b7063dd18817117e8d3e75ac925b4e622 /app/models | |
| parent | 0a69d409cded29a45ee3857f0a49c9a7a51d858a (diff) | |
| download | chouette-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.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 | 
