Sha256: f8ec7e61727b588bc4f8c93a7e07714d26fb509182f5dbf7d460ec87b367a35d

Contents?: true

Size: 295 Bytes

Versions: 20

Compression:

Stored size: 295 Bytes

Contents

module Renalware
  module Letters
    class HTMLRenderer
      def call(letter)
        context = LettersController.new
        context.render_to_string(
          partial: "/renalware/letters/formatted_letters/letter",
          locals: { letter: letter }
        )
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc13 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc11 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc3 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta12 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta11 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta10 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta9 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta8 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta7 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta6 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta5 app/models/renalware/letters/html_renderer.rb
renalware-core-2.0.0.pre.beta4 app/models/renalware/letters/html_renderer.rb