Rubocop: Style/Alias enabled

This commit is contained in:
Dmitriy Zaporozhets 2015-02-02 20:57:10 -08:00
parent aaae5e6f5e
commit 9fbdbf8b3f
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ Style/AccessorMethodName:
Style/Alias:
Description: 'Use alias_method instead of alias.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
Enabled: false
Enabled: true
Style/AlignArray:
Description: >-

View file

@ -43,7 +43,7 @@ class WikiPage
@attributes[:slug]
end
alias :to_param :slug
alias_method :to_param, :slug
# The formatted title of this page.
def title