Permalink
Browse files

Merge pull request #1 from steveklabnik/patch-1

Fixing idiom for retired_switch.
  • Loading branch information...
2 parents 71f737a + 7e7c370 commit 5e2a7c77dbcc368fae6b96ba7ed98f4b7ea52120 @Andrewglass1 Andrewglass1 committed Apr 20, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 app/models/product.rb
View
@@ -21,10 +21,7 @@ def category_list
end
def retired_switch
- case retired
- when true then false
- when false then true
- end
+ !retired
end
def badge_html

0 comments on commit 5e2a7c7

Please sign in to comment.