aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/referential.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/referential.rb')
-rw-r--r--app/models/referential.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb
index 75c1889ca..73d29fee4 100644
--- a/app/models/referential.rb
+++ b/app/models/referential.rb
@@ -252,6 +252,10 @@ class Referential < ActiveRecord::Base
before_destroy :destroy_schema
before_destroy :destroy_jobs
+ def referential_read_only?
+ in_referential_suite? || archived_at
+ end
+
def in_referential_suite?
referential_suite_id.present?
end
@@ -422,11 +426,6 @@ class Referential < ActiveRecord::Base
GeoRuby::SimpleFeatures::Geometry.from_ewkt(bounds.present? ? bounds : default_bounds ).envelope
end
- # For Delegator
- def archived_or_finalised?
- archived_at || in_referential_suite?
- end
-
# Archive
def archive!