Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update for edgey goodness

  • Loading branch information...
commit 68b1b128c1fe450b78ca54a390c3cf3ed6f2d566 1 parent 75ca7fd
@defunkt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/acts_as_textiled.rb
View
3  lib/acts_as_textiled.rb
@@ -57,7 +57,8 @@ def write_attribute(attr_name, value)
def strip_redcloth_html(html)
returning html.dup.gsub(html_regexp, '') do |h|
redcloth_glyphs.each do |(entity, char)|
- h.gsub!(entity, char)
+ sub = [:gsub!, entity, char]
+ h.respond_to?(:chars) ? h.chars.send(*sub) : h.send(*sub)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.