lib/happy/context_ext/helpers.rb in happy-0.1.0.pre.3 vs lib/happy/context_ext/helpers.rb in happy-0.1.0.pre.4
- old
+ new
@@ -5,9 +5,10 @@
module Helpers
include HappyHelpers::Helpers
def render(what, options = {}, &blk)
case what
+ when NilClass then ''
when String then render_template(what, options, &blk)
when Enumerable then what.map { |i| render(i, options, &blk) }.join
else render_resource(what, options)
end
end