Commit 9fbdbf8b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Rubocop: Style/Alias enabled

parent aaae5e6f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment