diff options
| author | Xinhui | 2016-10-03 14:27:31 +0200 |
|---|---|---|
| committer | Xinhui | 2016-10-03 16:33:21 +0200 |
| commit | 5d6802c6eb0b78466a6bd1b176bfc380918c2fee (patch) | |
| tree | bf547ff60d24ab492b9a0fbd25e4949d9e4f8e1e /app/models/line_referential.rb | |
| parent | a3ec27a8d971f6886712a0b19e4dbd85693882e0 (diff) | |
| download | chouette-core-5d6802c6eb0b78466a6bd1b176bfc380918c2fee.tar.bz2 | |
Add cancel sync button for testing
Diffstat (limited to 'app/models/line_referential.rb')
| -rw-r--r-- | app/models/line_referential.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/line_referential.rb b/app/models/line_referential.rb index f33934dfc..fcee9c5c9 100644 --- a/app/models/line_referential.rb +++ b/app/models/line_referential.rb @@ -22,4 +22,8 @@ class LineReferential < ActiveRecord::Base def operating_lines lines.where(deactivated: false) end + + def last_sync + line_referential_syncs.last + end end |
