Rubocop: Style/Alias enabled
This commit is contained in:
parent
aaae5e6f5e
commit
9fbdbf8b3f
2 changed files with 2 additions and 2 deletions
|
@ -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: >-
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue