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

Rubocop: Style/Alias enabled

parent aaae5e6f
...@@ -10,7 +10,7 @@ Style/AccessorMethodName: ...@@ -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 ...@@ -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
......
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