[Backgroundrb-devel] update_attribute overwrites existing attributes with NULL.
brian at morearty.org
Mon Apr 28 18:45:59 EDT 2008
I'm not sure but perhaps this is the answer to your question?
Summary: put a :select on your "find" call so it only updates the attributes
that were selected.
(Not a backgroundrb issue, but an ActiveRecord one. Seems like an
ActiveRecord deficiency to me. The link above is pretty old. Not sure if
it's fixed nowadays.)
- Brian (not you)
On Mon, Apr 28, 2008 at 3:12 PM, Brian <theeuniv at gmail.com> wrote:
> When using update_attribute from within a worker method, it seems that
> Backgroundrb inserts null values into all attributes that are not explicitly
> set. Is this possible/true?
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel