aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/line_referential.rb
diff options
context:
space:
mode:
authorXinhui2016-10-03 14:27:31 +0200
committerXinhui2016-10-03 16:33:21 +0200
commit5d6802c6eb0b78466a6bd1b176bfc380918c2fee (patch)
treebf547ff60d24ab492b9a0fbd25e4949d9e4f8e1e /app/models/line_referential.rb
parenta3ec27a8d971f6886712a0b19e4dbd85693882e0 (diff)
downloadchouette-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.rb4
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