Permalink
Browse files

Always re-highlight codez

  • Loading branch information...
1 parent 72c23b3 commit e8dd621100e6f39cfc3475b097733d77188f193c @nakajima committed May 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/bookmarklet.rb
View
2 app/models/bookmarklet.rb
@@ -3,7 +3,7 @@ class Bookmarklet < ActiveRecord::Base
validates_presence_of :code
validate :spam_check, :if => :spam?
- before_create :highlight_code!, :if => :code?
+ before_save :highlight_code!, :if => :code?
attr_accessor :body # This is for spam detection

0 comments on commit e8dd621

Please sign in to comment.