mirror of
https://github.com/mastodon/mastodon.git
synced 2024-09-18 19:40:41 +00:00
Remove unused boolean_with_default
method
This commit is contained in:
parent
82029730f1
commit
92a3ae1873
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue