diff options
| author | Alban Peignier | 2018-04-25 09:45:10 +0200 | 
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-25 15:46:33 +0200 | 
| commit | 199e4eaeffe8a826f5215359494ba3cc6ac6eb8a (patch) | |
| tree | 44ce5e0def40537ff1faf7bd97ebc1545ef24144 /app/models/application_model.rb | |
| parent | 2272a75da51315c5ec702a293438796c0f88ccbb (diff) | |
| download | chouette-core-199e4eaeffe8a826f5215359494ba3cc6ac6eb8a.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 | 
