Address violation of Rubocop Rails/ReadWriteAttribute

This commit is contained in:
Kristina Lim
2020-05-14 04:50:57 +08:00
committed by Luis Ramos
parent 22c0693beb
commit 1e8543dfe7

View File

@@ -42,7 +42,7 @@ module Spree
private
def count_on_hand=(value)
write_attribute(:count_on_hand, value)
self[:count_on_hand] = value
end
def process_backorders