public
Description: Makes your models act as textiled.
Homepage: http://errtheblog.com/posts/12-actsastextiled
Clone URL: git://github.com/defunkt/acts_as_textiled.git
update for edgey goodness
defunkt (author)
Fri Jan 05 11:58:53 -0800 2007
commit  68b1b128c1fe450b78ca54a390c3cf3ed6f2d566
tree    bce7948d601bbfa8896b667f9dddb1137a044685
parent  75ca7fd31bf1ba2bcb7a33a961e72e7df9d52779
...
57
58
59
60
 
 
61
62
63
...
57
58
59
 
60
61
62
63
64
0
@@ -57,7 +57,8 @@ module Err
0
         def strip_redcloth_html(html)
0
           returning html.dup.gsub(html_regexp, '') do |h|
0
             redcloth_glyphs.each do |(entity, char)|
0
- h.gsub!(entity, char)
0
+ sub = [:gsub!, entity, char]
0
+ h.respond_to?(:chars) ? h.chars.send(*sub) : h.send(*sub)
0
             end
0
           end
0
         end

Comments

    No one has commented yet.