diff options
| author | Xinhui | 2017-11-21 16:34:16 +0100 |
|---|---|---|
| committer | Xinhui | 2017-11-28 12:18:26 +0100 |
| commit | 3a9cc46e7cf705df7cdb8fb7c19daa8165ead33d (patch) | |
| tree | f654b07785e6da230719b1de65d001bc35e79b25 /app/models/chouette/timeband.rb | |
| parent | 8aa230271ec6f0cd578e479c42d95418cb9408c3 (diff) | |
| download | chouette-core-3a9cc46e7cf705df7cdb8fb7c19daa8165ead33d.tar.bz2 | |
Add paper_trail to models
Diffstat (limited to 'app/models/chouette/timeband.rb')
| -rw-r--r-- | app/models/chouette/timeband.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/chouette/timeband.rb b/app/models/chouette/timeband.rb index 21c81ab1c..6155ffc77 100644 --- a/app/models/chouette/timeband.rb +++ b/app/models/chouette/timeband.rb @@ -9,7 +9,7 @@ module Chouette class Timeband < Chouette::TridentActiveRecord include ObjectidSupport - + has_paper_trail self.primary_key = "id" validates :start_time, :end_time, presence: true @@ -26,4 +26,4 @@ module Chouette "#{self.name} (#{fullname})" if self.name end end -end
\ No newline at end of file +end |
