Sha256: 50b80ffb6ed4c4cc8d87ffd8d1af4d07846d74b196e6855f17e0d30caf23b1e4
Contents?: true
Size: 581 Bytes
Versions: 22
Compression:
Stored size: 581 Bytes
Contents
module InventoryRefresh class ApplicationRecordReference attr_reader :base_class_name, :id # ApplicationRecord is very bloaty in memory, so this class server for storing base_class and primary key # of the ApplicationRecord, which is just enough for filling up relationships # # @param base_class_name [String] A base class of the ApplicationRecord object # @param id [Bigint] Primary key value of the ApplicationRecord object def initialize(base_class_name, id) @base_class_name = base_class_name @id = id end end end
Version data entries
22 entries across 22 versions & 1 rubygems