
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
-
Bernerd Schaefer June 10th, 2008 @ 11:11 AM
- State changed from new to hold
I added a few lines to the resource spec on git (http://github.com/sam/dm-core/co...) to confirm that this is fixed in the latest git version of DM.
We should be pushing out a new gem soon, so I'll go ahead and put this ticket on hold until the new gem is released.
-
Bernerd Schaefer June 10th, 2008 @ 11:13 AM
- State changed from hold to resolved
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.
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
- Nobody is watching this ticket.