Sha256: 8eda05e3c08c92ed8ed9489fdcc981737c6a36b026f53948efdeab0daaf852e0

Contents?: true

Size: 269 Bytes

Versions: 2

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module Renderful
  class NoRendererError < StandardError
    attr_reader :entry

    def initialize(entry, *args)
      @entry = entry

      super "Cannot find renderer for content type #{entry.content_type.id}", *args
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renderful-0.2.0 lib/renderful/no_renderer_error.rb
renderful-0.1.0 lib/renderful/no_renderer_error.rb