Skip to content

Commit

Permalink
Fix deprecation warning re: PaperTrail.whodunnit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredbeck committed Aug 27, 2018
1 parent 59e3f80 commit f427dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/history/rails_admin_paper_trail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
@user = FactoryBot.create :user
@paper_trail_test = FactoryBot.create :paper_trail_test
with_versioning do
PaperTrail.whodunnit = @user.id
PaperTrail.request.whodunnit = @user.id
30.times do |i|
@paper_trail_test.update!(name: "updated name #{i}")
end
Expand Down

0 comments on commit f427dc3

Please sign in to comment.