Rails: si has_many de la relation changé

J'ai ces deux classes.

class Article < ActiveRecord::Base
  attr_accessible :body, :issue, :name, :page, :image, :video, :brand_ids
  has_many :publications
  has_many :docs, :through => :publications
end

class Doc < ActiveRecord::Base
  attr_accessible :issue_id, :cover_id, :message, :article_ids, :user_id, :created_at, :updated_at, :issue_code, :title, :template_id
  has_many :publications, dependent: :destroy
  has_many :articles, :through => :publications, :order => 'publications.position'
  has_many :edits, dependent: :destroy
  accepts_nested_attributes_for :articles, allow_destroy: false
end

Comment pourrais-je écrire une instruction conditionnelle pour voir si @doc.articles a changé après la mise à jour @doc?

if @doc.articles.changed?
  ...
end

Ci-dessus me donne une erreur. Je ne trouve pas la bonne syntaxe.

InformationsquelleAutor okay56k | 2013-05-24