Permalink
Browse files

abstracted fields for spam! and ham

  • Loading branch information...
RSL
RSL committed May 17, 2009
1 parent 964b572 commit ef33b7616698aaa2bbf54a569894ae19accff756
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lucky_sneaks/acts_as_snook.rb
@@ -102,11 +102,11 @@ def moderate?
end
def ham!
- update_attribute :spam_status, "ham"
+ update_attribute self.class.fields_for_snooking[:spam_status_field], "ham"
end
def spam!
- update_attribute :spam_status, "spam"
+ update_attribute self.class.fields_for_snooking[:spam_status_field], "spam"
end
private

0 comments on commit ef33b76

Please sign in to comment.