5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:36:21 +00:00
panel/app/models/application_record.rb

13 lines
287 B
Ruby
Raw Normal View History

2019-03-26 15:32:20 +00:00
# frozen_string_literal: true
2018-01-02 17:19:25 +00:00
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
2024-04-15 19:58:55 +00:00
# Obtener una lista filtrada de atributos al momento de serializar
#
# @return [Hash]
def to_yaml(options = {})
self.class.inspection_filter.filter attributes
end
2018-01-02 17:19:25 +00:00
end