diff options
| author | Robert | 2018-01-05 17:34:07 +0100 |
|---|---|---|
| committer | Robert | 2018-01-08 08:35:28 +0100 |
| commit | fb9eb367b9c56c19df7f2e2301f4a417f5409d6d (patch) | |
| tree | 1cdeb3efed78959d83d6b0547eb94293648d2c42 /app/models | |
| parent | dcc56c4d02f9f71b13dd38251367306842cd10c7 (diff) | |
| download | chouette-core-fb9eb367b9c56c19df7f2e2301f4a417f5409d6d.tar.bz2 | |
Refs: #5413@4h; Setting up db (chore) and specing desired behavior [skip-ci]
- Adapted shared pundit examples to allow to check with archieved and finalised referentials
- Speced desired behavior with this enhancement
- finalise_referential helper in policy spec's support
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/referential.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb index a5d5acbf9..5aa360cba 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 in_referential_suite? + referential_suite_id.present? + end + def in_workbench? workbench_id.present? end @@ -334,9 +338,6 @@ class Referential < ActiveRecord::Base end end - def in_referential_suite? - referential_suite_id.present? - end attr_accessor :inline_clone def clone_schema |
