mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update Boolean typecasting to Rails 5 version
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user