diff options
| author | Xinhui | 2017-11-22 16:32:32 +0100 | 
|---|---|---|
| committer | Xinhui | 2017-11-28 12:21:33 +0100 | 
| commit | 86fd42a9136cb6eef87ecec3d0b2bcf579667798 (patch) | |
| tree | a3ef5d442d91ea9cbf6608f2e9111691e8bd4567 /app/models/api/v1 | |
| parent | bc7888297ae545ae3c453c5c9481d22b37a0dad4 (diff) | |
| download | chouette-core-86fd42a9136cb6eef87ecec3d0b2bcf579667798.tar.bz2 | |
Add has_paper_trail on models
Diffstat (limited to 'app/models/api/v1')
| -rw-r--r-- | app/models/api/v1/api_key.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/api/v1/api_key.rb b/app/models/api/v1/api_key.rb index 767e65f3a..09c6f77ac 100644 --- a/app/models/api/v1/api_key.rb +++ b/app/models/api/v1/api_key.rb @@ -1,6 +1,7 @@  module Api    module V1      class ApiKey < ::ActiveRecord::Base +      has_paper_trail        before_create :generate_access_token        belongs_to :referential, :class_name => '::Referential'        belongs_to :organisation, :class_name => '::Organisation'  | 
