conred 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,14 +14,12 @@ module Conred
14
14
  text = action_view.strip_tags(text)
15
15
  if word_count
16
16
  action_view.truncate(text, :length => word_count, :omission => omission).html_safe
17
- elsif text == nil
18
- ""
19
17
  else
20
18
  text.html_safe
21
19
  end
22
20
  end
23
21
 
24
- def sanitize_body(text)
22
+ def sanitize_body(text = "")
25
23
  text = action_view.sanitize(text, :tags => %w(p a strong ul ol li blockquote strike u em), :attributes => %w(href))
26
24
  text.html_safe
27
25
  end
@@ -1,3 +1,3 @@
1
1
  module Conred
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conred
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: