summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rubocop.yml2
-rw-r--r--app/services/projects/image_service.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 17494974d14..ffc20fec4b2 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,7 +1,7 @@
Style/AccessModifierIndentation:
Description: Check indentation of private/protected visibility modifiers.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
- Enabled: false
+ Enabled: true
Style/AccessorMethodName:
Description: Check the naming of accessor methods for get_/set_.
diff --git a/app/services/projects/image_service.rb b/app/services/projects/image_service.rb
index c79ddddd972..7ca7e82c4a3 100644
--- a/app/services/projects/image_service.rb
+++ b/app/services/projects/image_service.rb
@@ -14,14 +14,14 @@ module Projects
uploader.store!(image)
link = {
'alt' => File.basename(alt, '.*'),
- 'url' => File.join(@root_url, uploader.url)
+ 'url' => File.join(@root_url, uploader.url)
}
else
link = nil
end
end
- protected
+ protected
def upload_path
base_dir = FileUploader.generate_dir