Skip to content

Using object in immediate method results in hang/infinite loop #3

@coreyward

Description

@coreyward

Consider the following:

class FriendlyDecorator < Decorum::Decorator
  immediate :name
  def name
    "Your friendly neighborhood #{object.name}."
  end
end

Using object in this context results in pegged CPU usage and no exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions