Rubocop: Style/Alias enabled
This commit is contained in:
parent
aaae5e6f5e
commit
9fbdbf8b3f
|
|
@ -10,7 +10,7 @@ Style/AccessorMethodName:
|
||||||
Style/Alias:
|
Style/Alias:
|
||||||
Description: 'Use alias_method instead of alias.'
|
Description: 'Use alias_method instead of alias.'
|
||||||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
Style/AlignArray:
|
Style/AlignArray:
|
||||||
Description: >-
|
Description: >-
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class WikiPage
|
||||||
@attributes[:slug]
|
@attributes[:slug]
|
||||||
end
|
end
|
||||||
|
|
||||||
alias :to_param :slug
|
alias_method :to_param, :slug
|
||||||
|
|
||||||
# The formatted title of this page.
|
# The formatted title of this page.
|
||||||
def title
|
def title
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue