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
d4bc570e
Commit
d4bc570e
authored
Jan 21, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary attr_accessor
parent
766dfb88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/services/application_settings/base_service.rb
app/services/application_settings/base_service.rb
+0
-2
app/services/application_settings/update_service.rb
app/services/application_settings/update_service.rb
+2
-2
No files found.
app/services/application_settings/base_service.rb
View file @
d4bc570e
module
ApplicationSettings
class
BaseService
<
::
BaseService
attr_accessor
:application_setting
,
:current_user
,
:params
def
initialize
(
application_setting
,
user
,
params
=
{})
@application_setting
,
@current_user
,
@params
=
application_setting
,
user
,
params
.
dup
end
...
...
app/services/application_settings/update_service.rb
View file @
d4bc570e
...
...
@@ -2,9 +2,9 @@ module ApplicationSettings
class
UpdateService
<
ApplicationSettings
::
BaseService
def
execute
# Repository size limit comes as MB from the view
assign_repository_size_limit_as_bytes
(
application_setting
)
assign_repository_size_limit_as_bytes
(
@
application_setting
)
application_setting
.
update
(
params
)
@application_setting
.
update
(
@
params
)
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