Skip to content

Commit

Permalink
Fix comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flameeyes committed May 31, 2010
1 parent 2e6cb44 commit 8ca6d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/blog_sweeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def after_articles_nuke_trackback
end

def after_save(record)
expire_for(record) unless (record.is_a?(Article) and record.state.downcase == 'draft')
expire_for(record) unless (record.is_a?(Article) and record.state == Article::Status::Draft)
end

def after_destroy(record)
Expand Down

0 comments on commit 8ca6d2a

Please sign in to comment.