From c7f94340e857af19cccb2c891999bf18f490bcd6 Mon Sep 17 00:00:00 2001 From: Ben Atkins Date: Thu, 9 Apr 2015 22:56:55 -0400 Subject: [PATCH] PaperTrail::Model::InstanceMethods#touch_with_version should skip validations to more closely mimic the behavior of #touch --- lib/paper_trail/has_paper_trail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paper_trail/has_paper_trail.rb b/lib/paper_trail/has_paper_trail.rb index e00dcf5c..c1c19fbb 100644 --- a/lib/paper_trail/has_paper_trail.rb +++ b/lib/paper_trail/has_paper_trail.rb @@ -274,7 +274,7 @@ module PaperTrail attributes.each { |column| write_attribute(column, current_time) } # ensure a version is written even if the `:on` collection is empty record_update(true) if paper_trail_options[:on] == [] - save! + save!(:validate => false) end private