Exception: Renderful::NoRendererError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/renderful/no_renderer_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry, *args) ⇒ NoRendererError

Returns a new instance of NoRendererError.



7
8
9
10
11
# File 'lib/renderful/no_renderer_error.rb', line 7

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

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

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry.



5
6
7
# File 'lib/renderful/no_renderer_error.rb', line 5

def entry
  @entry
end