Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Mark output as html_safe

  • Loading branch information...
commit 8e6de4888d7553dbcb45916416ea540a8c0979c9 1 parent 2df4411
Sebastian von Conrad authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  lib/in_bed_with.rb
3  lib/in_bed_with.rb
@@ -18,6 +18,7 @@ def self.config(&block)
18 18 end
19 19
20 20 def self.method_missing(method, *args, &block)
21   - "InBedWith::#{method.to_s.camelize}".constantize.new(*args).code
  21 + str = "InBedWith::#{method.to_s.camelize}".constantize.new(*args).code
  22 + str.respond_to?(:html_safe) ? str.html_safe : str
22 23 end
23 24 end

0 comments on commit 8e6de48

Please sign in to comment.
Something went wrong with that request. Please try again.