mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 23:56:22 +00:00
12 lines
314 B
Ruby
12 lines
314 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ApplicationRecord < ActiveRecord::Base
|
|
self.abstract_class = true
|
|
|
|
# Obtener una lista filtrada de atributos al momento de serializar
|
|
#
|
|
# @return [String]
|
|
def to_yaml(options = {})
|
|
self.class.inspection_filter.filter(serializable_hash).to_yaml(options)
|
|
end
|
|
end
|