diff --git a/lib/mjml/rails/template_handler.rb b/lib/mjml/rails/template_handler.rb index 917ba47..b0c1e62 100644 --- a/lib/mjml/rails/template_handler.rb +++ b/lib/mjml/rails/template_handler.rb @@ -9,8 +9,8 @@ def initialize(base_handler = :erb) @base_handler = base_handler end - def call(template) - compiled = get_handler(@base_handler).call(template) + def call(template, source=nil) + compiled = get_handler(@base_handler).call(template, source) "::MJML::Parser.new.call!(begin;#{compiled};end).html_safe" end