Skip to content

Commit

Permalink
Merge pull request #16 from cohortsolutions/rails-6
Browse files Browse the repository at this point in the history
Fix deprecation warning for Rails 6
  • Loading branch information
m-basov authored Dec 20, 2019
2 parents 61534f0 + 3aee52e commit 62c2349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mjml/rails/template_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 62c2349

Please sign in to comment.