mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Fix use of ActiveRecord::Type::Boolean#type_cast_from_database
This method longer exists.
This commit is contained in:
@@ -122,7 +122,7 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
def to_bool(value)
|
||||
ActiveRecord::Type::Boolean.new.type_cast_from_database(value)
|
||||
ActiveRecord::Type::Boolean.new.cast(value)
|
||||
end
|
||||
|
||||
def to_local_datetime(date)
|
||||
|
||||
Reference in New Issue
Block a user