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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
0b6ad31c
Commit
0b6ad31c
authored
Jan 19, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing application_setting option
parent
486177e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
app/models/ee/application_setting.rb
app/models/ee/application_setting.rb
+7
-6
No files found.
app/models/ee/application_setting.rb
View file @
0b6ad31c
module
EE
#
Build
EE mixin
#
ApplicationSetting
EE mixin
#
# This module is intended to encapsulate EE-specific model logic
# and be included in the `
Build
` model
module
Build
extend
ActiveSupport
::
Concern
# and be included in the `
ApplicationSetting
` model
module
ApplicationSetting
extend
ActiveSupport
::
Prependable
def
shared_runners_minutes_limit_enabled?
runner
&&
runner
.
shared?
&&
project
.
shared_runners_minutes_limit_enabled?
prepended
do
validates
:shared_runners_minutes
,
numericality:
{
greater_than_or_equal_to:
0
}
end
end
end
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