Permalink
Browse files

Mark output as html_safe

  • Loading branch information...
1 parent 2df4411 commit 8e6de4888d7553dbcb45916416ea540a8c0979c9 Sebastian von Conrad committed Jan 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/in_bed_with.rb
View
3 lib/in_bed_with.rb
@@ -18,6 +18,7 @@ def self.config(&block)
end
def self.method_missing(method, *args, &block)
- "InBedWith::#{method.to_s.camelize}".constantize.new(*args).code
+ str = "InBedWith::#{method.to_s.camelize}".constantize.new(*args).code
+ str.respond_to?(:html_safe) ? str.html_safe : str
end
end

0 comments on commit 8e6de48

Please sign in to comment.