diff options
| author | Alban Peignier | 2018-04-25 09:45:10 +0200 |
|---|---|---|
| committer | Alban Peignier | 2018-04-25 09:45:10 +0200 |
| commit | 4a9a0b8842ee297b61ebc9544efb5eb900e44c57 (patch) | |
| tree | ced824064694f64e50e8831caf489eb1160b58a3 /app/models/application_model.rb | |
| parent | a2c0f14c6a70f8c967ba3e07182f1898b2866edd (diff) | |
| download | chouette-core-4a9a0b8842ee297b61ebc9544efb5eb900e44c57.tar.bz2 | |
Move workgroup method to less global Class (TridentActiveRecord/LineReferentialSupport and StopAreaReferentialSupport) to avoid to overide existing methods. Refs #6669
Diffstat (limited to 'app/models/application_model.rb')
| -rw-r--r-- | app/models/application_model.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/models/application_model.rb b/app/models/application_model.rb index 1715e06c4..1a2a5099d 100644 --- a/app/models/application_model.rb +++ b/app/models/application_model.rb @@ -2,20 +2,4 @@ class ApplicationModel < ::ActiveRecord::Base include MetadataSupport self.abstract_class = true - - def self.referential - Referential.where(slug: Apartment::Tenant.current).last - end - - def referential - self.class.referential - end - - def self.workgroup - referential&.workgroup - end - - def workgroup - self.class.workgroup - end end |
