|
|
|
class ApplicationRecord < ActiveRecord::Base
|
|
|
|
include NumberDisplayHelper
|
|
|
|
|
|
|
|
attr_accessor :_extra_data
|
|
|
|
|
|
|
|
self.abstract_class = true
|
|
|
|
|
|
|
|
def format_time(time)
|
|
|
|
time.present? ? time.strftime('%Y-%m-%d %H:%M') : ''
|
|
|
|
end
|
|
|
|
|
|
|
|
def display_extra_data(key)
|
|
|
|
_extra_data&.[](key)
|
|
|
|
end
|
|
|
|
end
|