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
pointless style tweaks
defunkt (author)
Fri Dec 08 21:54:14 -0800 2006
commit  75ca7fd31bf1ba2bcb7a33a961e72e7df9d52779
tree    8b96b63fb086e4d7c8f51220bbb2406564eacb7a
parent  a630c7ba48cf37f8e81bb9eb892bf78b712a266f
...
32
33
34
35
 
36
37
38
...
55
56
57
58
59
60
 
 
 
 
61
62
63
64
65
...
32
33
34
 
35
36
37
38
...
55
56
57
 
 
 
58
59
60
61
62
 
63
64
65
0
@@ -32,7 +32,7 @@ module Err
0
         end
0
 
0
         def textiled?
0
- @is_textiled.nil? ? true : @is_textiled
0
+ @is_textiled || true
0
         end
0
 
0
         def textiled=(bool)
0
@@ -55,11 +55,11 @@ module Err
0
 
0
       private
0
         def strip_redcloth_html(html)
0
- html = html.dup.gsub(html_regexp, '')
0
- redcloth_glyphs.each do |(entity, char)|
0
- html.gsub!(entity, char)
0
+ returning html.dup.gsub(html_regexp, '') do |h|
0
+ redcloth_glyphs.each do |(entity, char)|
0
+ h.gsub!(entity, char)
0
+ end
0
           end
0
- html
0
         end
0
 
0
         def redcloth_glyphs

Comments

    No one has commented yet.