Skip to content
This repository has been archived by the owner on Aug 17, 2018. It is now read-only.

Commit

Permalink
Fix autocorrection and disable cop
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rodríguez committed Jan 9, 2016
1 parent 08d9607 commit d905de1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ Style/Lambda:

Style/ExtraSpacing:
Enabled: true

Performance/CaseCmp:
Enabled: false
2 changes: 1 addition & 1 deletion app/views/users/_filters.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ul.nav.nav-pills.nav-stacked
li.nav-header= t '.people'

- %w(user host volunteer).each do |type|
li.type[id=type class=('active' if filter_class.name.casecmp(type))]
li.type[id=type class=('active' if filter_class.name.downcase == type)]
= link_to t(".#{type}"),
users_path(sym_params.merge(type: type)),
remote: true
Expand Down

0 comments on commit d905de1

Please sign in to comment.