Steve,

Thanks, but the solution I posted above works. I just wanted to note
that the Lovd code doesn't...

Cheers, SAzima

On Feb 16, 12:25 pm, Steven Bristol <[email protected]> wrote:
> On Tue, Feb 10, 2009 at 7:50 PM, Sazima <[email protected]> wrote:
>
> > Guys,
>
> > In my very old version of Lovd, user.rb->after_destroy is not working:
>
> > WARNING: Can't mass-assign these protected attributes: is_active
>
> > Had to skip validations to make it work, any issues with that?
>
> >  def after_destroy
> >    profile.update_attribute(:is_active, false)
> >  end
>
> > I also checked github and the current code is still the same as of my
> > version (profile.update_attributes :is_active=>false). Has a fix been
> > submitted somewhere else in the code?
>
> > Cheers, Sazima
>
> You might have to
>
> profile.is_active = false
> profile.save
>
> cheers,
> steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" 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/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to