The code that does that is just a proxy to `all.update(attributes)`
# Update every Resource
#
# Person.update(:allow_beer => true)
#
# @param [Hash] attributes
# attributes to update with
#
# @return [Boolean]
# true if the resources were successfully updated
#
# @api public
def update(attributes)
all.update(attributes)
end
Have you made sure that there's not something else blocking your update?
-T
On Sat, Sep 3, 2011 at 3:44 PM, TheDude <[email protected]> wrote:
> Player.update(:energy => 100.0) does not UPDATE as expected, any ideas
> why?
>
> --
> 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.
>
>
--
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.