Class: ActiveFunction::Functions::Rendering::DoubleRenderError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_function/functions/rendering.rb

Constant Summary collapse

MESSAGE_TEMPLATE =
"#render was called multiple times in action: %s"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ DoubleRenderError

Returns a new instance of DoubleRenderError.



33
34
35
# File 'lib/active_function/functions/rendering.rb', line 33

def initialize(context)
  @message = MESSAGE_TEMPLATE % context
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



31
32
33
# File 'lib/active_function/functions/rendering.rb', line 31

def message
  @message
end