diff options
| author | Luc Donnet | 2015-05-20 13:34:32 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2015-05-20 13:34:32 +0200 | 
| commit | d54aad9538e9452498c8d5a98628f4af2d9f87c5 (patch) | |
| tree | 41fa9159638f0255cbefcd9039bccc7c94f5db6a /app/models/concerns | |
| parent | 57945951bdd6a2b861d2b799eca22aadee8b81a4 (diff) | |
| download | chouette-core-d54aad9538e9452498c8d5a98628f4af2d9f87c5.tar.bz2 | |
Integration of failure for iev and use faraday exception in controller Bug Refs #0035646
Diffstat (limited to 'app/models/concerns')
| -rw-r--r-- | app/models/concerns/report_concern.rb | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/concerns/report_concern.rb b/app/models/concerns/report_concern.rb index 762c86698..2f8df9f96 100644 --- a/app/models/concerns/report_concern.rb +++ b/app/models/concerns/report_concern.rb @@ -11,6 +11,14 @@ module ReportConcern    module ClassMethods    end +  def failure_code? +    datas.result == "NOK" && datas.failure? +  end + +  def failure_code +    datas.failure.code.downcase if failure_code? +  end +      def progression?      datas.progression?    end  | 
