diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-24 03:03:04 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-24 03:03:04 +0900 |
commit | 609b1ec9b629e60416eb32a4376a054ca0206d66 (patch) | |
tree | c4a02522d5e68954146925185f0c982122dcda0d /activerecord/lib/active_record | |
parent | ed56a031041a868eeeb439d8b79d04565be1286f (diff) | |
download | rails-609b1ec9b629e60416eb32a4376a054ca0206d66.tar.gz rails-609b1ec9b629e60416eb32a4376a054ca0206d66.tar.bz2 rails-609b1ec9b629e60416eb32a4376a054ca0206d66.zip |
`Persistence#increment!` requires an attribute argument which is incremented
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |