#360 ✓resolved
Jeremy Nicoll

Getter overrides borked

Reported by Jeremy Nicoll | June 7th, 2008 @ 03:43 PM

In 0.9.0.1, whenever I attempt to override a getter like so:

--------------

property short_content, DataMapper::Types::Text

def short_content

attribute_get(:short_content)

end

--------------

I get a "stack level too deep" error. It seems that attribute_get is referencing the method name of the object instead of getting the attribute directly. It would be nice to have a way to override methods as was previously available. I will see if I can get a patch working, but I'm not sure how much time I will have to devote to this.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Tags

Pages