Skip to content

Commit

Permalink
Fix numeric types (ht: Alex), closes heartcombo#6
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jun 7, 2010
1 parent 005b28b commit 2574e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/show_for/content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def content(value, options={}, apply_options=true, &block)
collection_handler(value, options, &block)
when Proc
@template.capture(&value)
when NilClass
""
when NilClass, Numeric
value.to_s
else
value
end
Expand Down

0 comments on commit 2574e78

Please sign in to comment.