Remove unused boolean_with_default method

This commit is contained in:
Matt Jankowski 2024-09-13 11:31:09 -04:00
parent 82029730f1
commit 92a3ae1873

View file

@ -13,16 +13,6 @@ class ApplicationRecord < ActiveRecord::Base
end
end
def boolean_with_default(key, default_value)
value = attributes[key]
if value.nil?
default_value
else
value
end
end
# Prevent implicit serialization in ActiveModel::Serializer or other code paths.
# This is a hardening step to avoid accidental leaking of attributes.
def as_json