Sha256: 2df34acd44a0aab94bbb749a2f5ad4b4ea5077b4db6a9adac6b15dc4e32edbfc
Contents?: true
Size: 562 Bytes
Versions: 96
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module Renalware module Letters # Note we cannot use a partial layout with render_to_string as it will always expect # the location to be in views/layouts and its not possible in Rails 5.1 to specify # another or absolute path class HTMLRenderer def call(letter) context = LettersController.new context.render_to_string( partial: "/renalware/letters/formatted_letters/letter", locals: { letter: letter }, encoding: "UTF-8" ) end end end end
Version data entries
96 entries across 96 versions & 1 rubygems