mrbrdo/has_moderated — Issue #6: Accepted moderation gets moderated agaein when adding nested attribute
Author: saschadaniels
Created: 2012-02-07 10:18:14+00:00
State: open

Hi.

This is my moderated model:

---------------
Class Movie < ActiveRecord::Base
belongs_to :user
validates_presence_of :user
# https://github.com/jnicklas/carrierwave
mount_uploader :photo, MovieFileUploader
include HasModerated::CarrierWave
# https://github.com/mrbrdo/has_moderated
has_moderated :carrierwave_photo
has_many :movie_to_articles, :dependent => :destroy
has_many :articles, :through => :movie_to_articles
----------------

I am doing the following:

a = Movie.first
a.articles.build(:number => "123)
a.save

Now a is moderated again.

I could use has_moderated_create, but that does not do the trick, because if the video is changed it must be moderated again. Other changes should be possible without moderation.

Is that possible?