airblade/paper_trail — Issue #110: :on doesn't work
Author: nguyendl
Created: 2011-11-15 21:26:50+00:00
State: open

Hi,
I have this model in my program:
class Suggestion < ActiveRecord::Base
has_paper_trail :on=>[:update], :only=>[:status]
#code...
end

I found out that the :on option doesn't work. PaperTrail will always save a version regardless of the event type. I checked the code in has_paper_trail.rb and saw that the has_paper_trail method doesn't have the :on option. Would this be the reason why :on doesn't work? If so, how could I use a different way to choose which event to monitor?

Thanks.