PaperTrail::Model::InstanceMethods#touch_with_version should return the result of #save!

This commit is contained in:
Ben Atkins 2015-03-19 18:15:57 -04:00
parent f78ed9f80d
commit a436d1d330
1 changed files with 2 additions and 1 deletions

View File

@ -269,8 +269,9 @@ module PaperTrail
current_time = current_time_from_proper_timezone
attributes.each { |column| write_attribute(column, current_time) }
# ensure a version is written even if the
record_update(true) if paper_trail_options[:on] == []
save!
record_update(true) if self.class.paper_trail_options[:on] == []
end
private