From 3c1a8ee7d7af658eb9e4cb927559907c09d13c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fran=C3=A7a?= Date: Mon, 23 Oct 2017 13:10:51 -0400 Subject: Merge pull request #30956 from CJStadler/with-lock-changed-deprecation Fix deprecation warnings from with_lock --- activerecord/test/models/frog.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 activerecord/test/models/frog.rb (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/frog.rb b/activerecord/test/models/frog.rb new file mode 100644 index 0000000000..73601aacdd --- /dev/null +++ b/activerecord/test/models/frog.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +class Frog < ActiveRecord::Base + after_save do + with_lock do + end + end +end -- cgit v1.2.3