Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pointless style tweaks

  • Loading branch information...
commit 75ca7fd31bf1ba2bcb7a33a961e72e7df9d52779 1 parent a630c7b
Chris Wanstrath authored December 09, 2006

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  lib/acts_as_textiled.rb
10  lib/acts_as_textiled.rb
@@ -32,7 +32,7 @@ def textiled
32 32
         end
33 33
 
34 34
         def textiled?
35  
-          @is_textiled.nil? ? true : @is_textiled
  35
+          @is_textiled || true
36 36
         end
37 37
 
38 38
         def textiled=(bool)
@@ -55,11 +55,11 @@ def write_attribute(attr_name, value)
55 55
 
56 56
       private
57 57
         def strip_redcloth_html(html)
58  
-          html = html.dup.gsub(html_regexp, '') 
59  
-          redcloth_glyphs.each do |(entity, char)|
60  
-            html.gsub!(entity, char)
  58
+          returning html.dup.gsub(html_regexp, '') do |h|
  59
+            redcloth_glyphs.each do |(entity, char)|
  60
+              h.gsub!(entity, char)
  61
+            end
61 62
           end
62  
-          html
63 63
         end
64 64
 
65 65
         def redcloth_glyphs

0 notes on commit 75ca7fd

Please sign in to comment.
Something went wrong with that request. Please try again.