Exception: Motion::BlockNotAllowedError

Inherits:
ComponentRenderingError show all
Defined in:
lib/motion/errors.rb

Instance Attribute Summary

Attributes inherited from ComponentError

#component

Instance Method Summary collapse

Constructor Details

#initialize(component) ⇒ BlockNotAllowedError

Returns a new instance of BlockNotAllowedError.



37
38
39
40
41
42
43
44
# File 'lib/motion/errors.rb', line 37

def initialize(component)
  super(
    component,
    "Motion does not support rendering with a block.\n" \
    "\n" \
    "Hint: Try wrapping a plain component with a motion component."
  )
end