Commit aaae5e6f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Rubocop: Style/AccessorMethodName enabled

parent 7d040af693ce
Style/AccessModifierIndentation: Style/AccessModifierIndentation:
Description: Check indentation of private/protected visibility modifiers. Description: Check indentation of private/protected visibility modifiers.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
Enabled: false Enabled: true
Style/AccessorMethodName: Style/AccessorMethodName:
Description: Check the naming of accessor methods for get_/set_. Description: Check the naming of accessor methods for get_/set_.
......
...@@ -14,14 +14,14 @@ def execute ...@@ -14,14 +14,14 @@ def execute
uploader.store!(image) uploader.store!(image)
link = { link = {
'alt' => File.basename(alt, '.*'), 'alt' => File.basename(alt, '.*'),
'url' => File.join(@root_url, uploader.url) 'url' => File.join(@root_url, uploader.url)
} }
else else
link = nil link = nil
end end
end end
protected protected
def upload_path def upload_path
base_dir = FileUploader.generate_dir base_dir = FileUploader.generate_dir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment