Rubocop: Style/AccessorMethodName enabled
This commit is contained in:
parent
e890582681
commit
aaae5e6f5e
|
@ -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_.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue