Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
a0abb904
Commit
a0abb904
authored
Mar 06, 2018
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate InternalId concern and rename.
parent
79aa0032
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
app/models/concerns/nonatomic_internal_id.rb
app/models/concerns/nonatomic_internal_id.rb
+1
-1
app/models/deployment.rb
app/models/deployment.rb
+1
-1
app/models/issue.rb
app/models/issue.rb
+1
-1
app/models/merge_request.rb
app/models/merge_request.rb
+1
-1
app/models/milestone.rb
app/models/milestone.rb
+1
-1
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+1
-1
No files found.
app/models/concerns/internal_id.rb
→
app/models/concerns/
nonatomic_
internal_id.rb
View file @
a0abb904
module
InternalId
module
Nonatomic
InternalId
extend
ActiveSupport
::
Concern
included
do
...
...
app/models/deployment.rb
View file @
a0abb904
class
Deployment
<
ActiveRecord
::
Base
include
InternalId
include
Nonatomic
InternalId
belongs_to
:project
,
required:
true
belongs_to
:environment
,
required:
true
...
...
app/models/issue.rb
View file @
a0abb904
require
'carrierwave/orm/activerecord'
class
Issue
<
ActiveRecord
::
Base
include
InternalId
include
Nonatomic
InternalId
include
Issuable
include
Noteable
include
Referable
...
...
app/models/merge_request.rb
View file @
a0abb904
class
MergeRequest
<
ActiveRecord
::
Base
include
InternalId
include
Nonatomic
InternalId
include
Issuable
include
Noteable
include
Referable
...
...
app/models/milestone.rb
View file @
a0abb904
...
...
@@ -8,7 +8,7 @@ class Milestone < ActiveRecord::Base
Started
=
MilestoneStruct
.
new
(
'Started'
,
'#started'
,
-
3
)
include
CacheMarkdownField
include
InternalId
include
Nonatomic
InternalId
include
Sortable
include
Referable
include
StripAttribute
...
...
spec/models/merge_request_spec.rb
View file @
a0abb904
...
...
@@ -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
(
Nonatomic
InternalId
)
}
it
{
is_expected
.
to
include_module
(
Issuable
)
}
it
{
is_expected
.
to
include_module
(
Referable
)
}
it
{
is_expected
.
to
include_module
(
Sortable
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment