Sha256: 8e37282c9503151d3e60f88bb22416989ff3d841c425a95b2c0aa897ebda6419
Contents?: true
Size: 390 Bytes
Versions: 4
Compression:
Stored size: 390 Bytes
Contents
module ReactiveRecord class DummyPolymorph def initialize(vector) @vector = vector puts "VECTOR: #{@vector.inspect}" Base.load_from_db(nil, *vector, 'id') Base.load_from_db(nil, *vector, 'model_name') end def nil? true end def method_missing(*) self end def self.reflect_on_all_associations(*) [] end end end
Version data entries
4 entries across 4 versions & 1 rubygems