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

View File

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