Skip to content
  • Sean Doyle's avatar
    b3bb06a2
    Raise `ArgumentError` if `:renderable` object does not respond to `#render_in` · b3bb06a2
    Sean Doyle authored
    When calling `render` with a `:renderable` argument, ensure that the
    object responds to `#render_in`. If it doesn't, raise an
    `ArgumentError`.
    
    This commit also adjusts the `ArgumentError` that when a `:partial`
    argument isn't Active Model compatible. Prior to this commit, the
    message used `:` as a prefix to `to_partial_path`. This commit replaces
    that with a `#` prefix to denote that it's expected to be an instance
    method on the object.
    b3bb06a2
    Raise `ArgumentError` if `:renderable` object does not respond to `#render_in`
    Sean Doyle authored
    When calling `render` with a `:renderable` argument, ensure that the
    object responds to `#render_in`. If it doesn't, raise an
    `ArgumentError`.
    
    This commit also adjusts the `ArgumentError` that when a `:partial`
    argument isn't Active Model compatible. Prior to this commit, the
    message used `:` as a prefix to `to_partial_path`. This commit replaces
    that with a `#` prefix to denote that it's expected to be an instance
    method on the object.
Loading