diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-03 07:57:10 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-03 07:57:10 +0300 |
commit | 9fbdbf8b3fff72ae37a320e7e9fac3b9224e3c53 (patch) | |
tree | 4ea2a7f8a785d1680f8f8d9fb64b0a8fd56e6ad5 | |
parent | aaae5e6f5ebc61f724e901f26e928f5e3bd9eb88 (diff) |
Rubocop: Style/Alias enabled
-rw-r--r-- | .rubocop.yml | 2 | ||||
-rw-r--r-- | app/models/wiki_page.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index ffc20fec4b2..c80c9bf907a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: >- diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index b9ab6702c53..32981a0e664 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -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 |