diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-13 19:43:02 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-16 13:35:26 +0100 |
commit | 6568b4a98e25d88a99b7a499bc7965ae47bf4b19 (patch) | |
tree | b0e7ea1bc404227d3c5fac0f6eae87478f52282b /app/models | |
parent | d374d0be1af0e6cef4a150425cd73189f9960f54 (diff) | |
download | gitlab-ce-6568b4a98e25d88a99b7a499bc7965ae47bf4b19.tar.gz |
Add shared specs for AtomicInternalId concern.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/concerns/atomic_internal_id.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/atomic_internal_id.rb b/app/models/concerns/atomic_internal_id.rb index 6a0f29806c4..bba71eee8bd 100644 --- a/app/models/concerns/atomic_internal_id.rb +++ b/app/models/concerns/atomic_internal_id.rb @@ -26,7 +26,7 @@ module AtomicInternalId included do class << self - def has_internal_id(on, scope:, usage: nil, init: nil) # rubocop:disable Naming/PredicateName + def has_internal_id(on, scope:, usage: nil, init:) # rubocop:disable Naming/PredicateName before_validation(on: :create) do if self.public_send(on).blank? # rubocop:disable GitlabSecurity/PublicSend |