Sha256: ff486a71717494c8cdd7f5bf22eab645da4cff5d998632ee4d4086bcc5b5a5f1

Contents?: true

Size: 515 Bytes

Versions: 9

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module Nexmo
  module OAS
    module Renderer
      module Helpers
        module Render
          def find_template(views, name, engine, &block)
            Array(views).each do |v|
              super(v, name, engine, &block)
            end
          end

          def render(*args)
            if args.length > 2
              super
            else
              ApplicationController.renderer.render(*args)
            end
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nexmo-oas-renderer-2.4.0 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.3.0 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.2.0 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.1.3 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.1.2 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.1.1 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.1.0 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.0.1 lib/nexmo/oas/renderer/helpers/render.rb
nexmo-oas-renderer-2.0.0 lib/nexmo/oas/renderer/helpers/render.rb