diff options
| author | Luc Donnet | 2018-04-10 09:49:15 +0200 |
|---|---|---|
| committer | Luc Donnet | 2018-04-10 09:49:15 +0200 |
| commit | e8c2d5e92ba321bb8f12d48055fbe1001a81405b (patch) | |
| tree | ed8958c99324372449d84349434d067d7b1fbe61 /app/models/api | |
| parent | 5da26542d56c9035f6b74a20d22a84105cfc1133 (diff) | |
| download | chouette-core-6367-remove-papertrail.tar.bz2 | |
Delete unused include MetadataSupport because all class inherit from ApplicationModel Refs #6327 @16367-remove-papertrail
Diffstat (limited to 'app/models/api')
| -rw-r--r-- | app/models/api/v1/api_key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/api/v1/api_key.rb b/app/models/api/v1/api_key.rb index 890e8e175..e6ceb977a 100644 --- a/app/models/api/v1/api_key.rb +++ b/app/models/api/v1/api_key.rb @@ -1,8 +1,8 @@ module Api module V1 class ApiKey < ::ApplicationModel - include MetadataSupport has_metadata + before_create :generate_access_token belongs_to :referential, :class_name => '::Referential' belongs_to :organisation, :class_name => '::Organisation' |
