Permalink
Browse files

Normalize member attribute

  • Loading branch information...
1 parent cee8ae3 commit 9e0e47950c9516930f2dd45c0802b837f4ebd2b0 @scottwillson committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/person.rb
View
@@ -803,7 +803,7 @@ def hometown=(value)
# Hack around in-place editing
def toggle!(attribute)
- if attribute == 'member'
+ if attribute.try(:to_s) == 'member'
self.member = !member?
save!
else

0 comments on commit 9e0e479

Please sign in to comment.