Here it is, line 9 of dm-timestamps.rb:

      :updated_at => lambda { |r| r.updated_at = DateTime.now },

ahh, more side effects of ruby-style "OO" programming.  What ever
happened to inheritance?

As you can see, this behavior will never work for a private attribute.

Jon


On Dec 5, 12:18 pm, Jon Hancock <[EMAIL PROTECTED]> wrote:
> I do not reference this attribute anywhere in my code besides the
> property where it is defined.  I am also not doing any mass assigns so
> its not sneaking in that way.
> This error seems to be where DM is auto-setting this value.
>
> Jon
>
> On Dec 5, 12:13 pm, Michael Klishin <[EMAIL PROTECTED]>
> wrote:
>
> > On 05.12.2008, at 6:03, Jon Hancock wrote:
>
> > > am I missing something, or do I need to file this in lighthouse?
>
> > If you are passing a hash of attributes to constructor and it has  
> > updated_at,
> > then I guess it should be ignored by DM.
>
> > Is it what you are doing in your code?
>
> > MK
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to