Rubocop: Style/AccessorMethodName enabled

This commit is contained in:
Dmitriy Zaporozhets 2015-02-02 20:55:05 -08:00
parent e890582681
commit aaae5e6f5e
2 changed files with 3 additions and 3 deletions

View File

@ -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_.

View File

@ -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