Has_and_belongs_to_many and updated_at

Hi there,

When I have a model with

has_and_belongs_to_many :keywords

and a keyword is added or removed, how can I make it to update its
updated_at timestamp?

Thanks,
Martin

On Thursday, January 23, 2014 11:46:03 AM UTC-5, Martin wrote:

Hi there,

When I have a model with

has_and_belongs_to_many :keywords

and a keyword is added or removed, how can I make it to update its
updated_at timestamp?

Hard to say without knowing what “it” you expect to see updated.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs