Permalink
Browse files

pointless style tweaks

  • Loading branch information...
1 parent a630c7b commit 75ca7fd31bf1ba2bcb7a33a961e72e7df9d52779 @defunkt committed Dec 9, 2006
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/acts_as_textiled.rb
@@ -32,7 +32,7 @@ def textiled
end
def textiled?
- @is_textiled.nil? ? true : @is_textiled
+ @is_textiled || true
end
def textiled=(bool)
@@ -55,11 +55,11 @@ def write_attribute(attr_name, value)
private
def strip_redcloth_html(html)
- html = html.dup.gsub(html_regexp, '')
- redcloth_glyphs.each do |(entity, char)|
- html.gsub!(entity, char)
+ returning html.dup.gsub(html_regexp, '') do |h|
+ redcloth_glyphs.each do |(entity, char)|
+ h.gsub!(entity, char)
+ end
end
- html
end
def redcloth_glyphs

0 comments on commit 75ca7fd

Please sign in to comment.