Permalink
Browse files

added a check to make sure the textilized field isn't nil

  • Loading branch information...
1 parent 6188d3d commit f061d1054d83711c7a927f5e08d762d2f536fe97 Andy Delcambre committed Feb 22, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/textilize_fu.rb
View
@@ -35,7 +35,7 @@ def textilize(attr_name, html_field_name = nil)
protected
def create_textilized_field
- send("#{self.class.html_field}=", TextilizeFu.translate(send(self.class.textilize_attribute)))
+ send("#{self.class.html_field}=", TextilizeFu.translate(send(self.class.textilize_attribute))) unless send(self.class.textilize_attribute).nil?
end
end

0 comments on commit f061d10

Please sign in to comment.