diff options
Diffstat (limited to 'app/models/export.rb')
| -rw-r--r-- | app/models/export.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/export.rb b/app/models/export.rb index ee008d590..c3895ffc5 100644 --- a/app/models/export.rb +++ b/app/models/export.rb @@ -1,5 +1,9 @@ class Export include JobConcern + + def report? + links["action_report"].present? + end def report Rails.cache.fetch("#{cache_key}/action_report", expires_in: cache_expiration) do @@ -26,6 +30,10 @@ class Export end end + def file_path? + links["data"].present? + end + def file_path links["data"] end |
