diff options
| author | Zog | 2018-05-09 08:41:23 +0200 | 
|---|---|---|
| committer | Zog | 2018-05-09 08:41:23 +0200 | 
| commit | 9434284e4f12b4b576762dabbd2b0a308e28bc61 (patch) | |
| tree | 227e341a2dd8d33c992f52ceb7c6be99e687db93 /app/models/compliance_check_set.rb | |
| parent | 430550b965035be3d78abad790e6c44fdc69087f (diff) | |
| download | chouette-core-9434284e4f12b4b576762dabbd2b0a308e28bc61.tar.bz2 | |
Refs #6960; Update imports to use nesw implementation
Diffstat (limited to 'app/models/compliance_check_set.rb')
| -rw-r--r-- | app/models/compliance_check_set.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/models/compliance_check_set.rb b/app/models/compliance_check_set.rb index eb0e23d82..f29ff4de5 100644 --- a/app/models/compliance_check_set.rb +++ b/app/models/compliance_check_set.rb @@ -26,6 +26,10 @@ class ComplianceCheckSet < ApplicationModel      %w(successful failed warning aborted canceled)    end +  def successful? +    status.to_s == "successful" +  end +    def self.abort_old      where(        'created_at < ? AND status NOT IN (?)', | 
