Skip to content

Commit

Permalink
rubocop fix Style/Alias
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinKo committed Apr 8, 2015
1 parent 6341cd0 commit e94ff60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ Rails/Validation:
Style/AccessorMethodName:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/Alias:
Enabled: false

# Offense count: 17
# Cop supports --auto-correct.
Style/AlignArray:
Expand Down
2 changes: 1 addition & 1 deletion app/models/rating.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class Rating < ActiveRecord::Base

default_scope -> { order("created_at DESC") }

alias :value :rating # to avoid structure 'rating_rating' in shared/show_article_listitem
alias_method :value, :rating # to avoid structure 'rating_rating' in shared/show_article_listitem

end

0 comments on commit e94ff60

Please sign in to comment.