Skip to content

Commit

Permalink
updated callback to not intercept ham!
Browse files Browse the repository at this point in the history
  • Loading branch information
rsl committed Apr 15, 2008
1 parent 61d74c3 commit dfae80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lucky_sneaks/acts_as_snook.rb
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dfae80e

Please sign in to comment.