Skip to content
Snippets Groups Projects
Commit a0abb904 authored by Andreas Brandl's avatar Andreas Brandl
Browse files

Deprecate InternalId concern and rename.

parent 79aa0032
No related branches found
No related tags found
No related merge requests found
module InternalId
module NonatomicInternalId
extend ActiveSupport::Concern
 
included do
Loading
Loading
class Deployment < ActiveRecord::Base
include InternalId
include NonatomicInternalId
 
belongs_to :project, required: true
belongs_to :environment, required: true
Loading
Loading
require 'carrierwave/orm/activerecord'
 
class Issue < ActiveRecord::Base
include InternalId
include NonatomicInternalId
include Issuable
include Noteable
include Referable
Loading
Loading
class MergeRequest < ActiveRecord::Base
include InternalId
include NonatomicInternalId
include Issuable
include Noteable
include Referable
Loading
Loading
Loading
Loading
@@ -8,7 +8,7 @@ class Milestone < ActiveRecord::Base
Started = MilestoneStruct.new('Started', '#started', -3)
 
include CacheMarkdownField
include InternalId
include NonatomicInternalId
include Sortable
include Referable
include StripAttribute
Loading
Loading
Loading
Loading
@@ -17,7 +17,7 @@ describe MergeRequest do
describe 'modules' do
subject { described_class }
 
it { is_expected.to include_module(InternalId) }
it { is_expected.to include_module(NonatomicInternalId) }
it { is_expected.to include_module(Issuable) }
it { is_expected.to include_module(Referable) }
it { is_expected.to include_module(Sortable) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment