Update Boolean typecasting to Rails 5 version

This commit is contained in:
Matt-Yorkley
2021-02-23 11:25:30 +00:00
parent 7bc63e6e81
commit 04a13a4f6f

View File

@@ -18,7 +18,7 @@ module Spree
end
def included_changed?
ActiveRecord::Type::Boolean.new.type_cast_from_user(
ActiveRecord::Type::Boolean.new.cast(
permitted_resource_params[:included_in_price]
) != @tax_rate.included_in_price
end