Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
5cd49a38
Commit
5cd49a38
authored
3 years ago
by
pabois
Browse files
Options
Downloads
Patches
Plain Diff
close #184
parent
a1439e3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/models/concerns/with_slug.rb
+1
-0
1 addition, 0 deletions
app/models/concerns/with_slug.rb
app/models/research/journal/article.rb
+1
-0
1 addition, 0 deletions
app/models/research/journal/article.rb
app/models/research/journal/volume.rb
+2
-1
2 additions, 1 deletion
app/models/research/journal/volume.rb
with
4 additions
and
1 deletion
app/models/concerns/with_slug.rb
+
1
−
0
View file @
5cd49a38
...
...
@@ -2,6 +2,7 @@ module WithSlug
extend
ActiveSupport
::
Concern
included
do
validates
:slug
,
presence:
true
validate
:slug_must_be_unique
validates
:slug
,
format:
{
with:
/\A[a-z0-9\-]+\z/
,
message:
I18n
.
t
(
'slug_error'
)
}
...
...
This diff is collapsed.
Click to expand it.
app/models/research/journal/article.rb
+
1
−
0
View file @
5cd49a38
...
...
@@ -37,6 +37,7 @@ class Research::Journal::Article < ApplicationRecord
include
WithGit
include
WithBlobs
include
WithPosition
include
WithSlug
has_summernote
:text
has_one_attached
:pdf
...
...
This diff is collapsed.
Click to expand it.
app/models/research/journal/volume.rb
+
2
−
1
View file @
5cd49a38
...
...
@@ -28,8 +28,9 @@
#
class
Research::Journal::Volume
<
ApplicationRecord
include
WithGit
include
WithFeaturedImage
include
WithBlobs
include
WithFeaturedImage
include
WithSlug
belongs_to
:university
belongs_to
:journal
,
foreign_key: :research_journal_id
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment