From 609b1ec9b629e60416eb32a4376a054ca0206d66 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 24 Sep 2018 03:03:04 +0900 Subject: `Persistence#increment!` requires an attribute argument which is incremented --- activerecord/lib/active_record/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb index b6852bfc71..1bffe89875 100644 --- a/activerecord/lib/active_record/callbacks.rb +++ b/activerecord/lib/active_record/callbacks.rb @@ -318,7 +318,7 @@ module ActiveRecord _run_touch_callbacks { super } end - def increment!(*, touch: nil) # :nodoc: + def increment!(attribute, by = 1, touch: nil) # :nodoc: touch ? _run_touch_callbacks { super } : super end -- cgit v1.2.3