Browse files

updated callback to not intercept ham!

  • Loading branch information...
1 parent 61d74c3 commit dfae80e652e56a37c4603913902148d9e920e32a rsl committed Apr 15, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lucky_sneaks/acts_as_snook.rb
View
4 lib/lucky_sneaks/acts_as_snook.rb
@@ -39,7 +39,7 @@ def acts_as_snook(options = {})
:spam_status_field => :spam_status
}.merge(options)
- before_validation :calculate_snook_score
+ before_validation_on_create :calculate_snook_score
attr_reader :snook_credits
attr_protected fields_for_snooking[:spam_status_field]
@@ -82,7 +82,7 @@ def moderate?
end
def ham!
- update_attribute self.class.fields_for_snooking[:spam_status_field], "ham"
+ update_attribute :spam_status, "ham"
end
private

0 comments on commit dfae80e

Please sign in to comment.