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