hello everyone,
is it possible to instantiate a model class with it's id instead of pulling it from the db?
thanks in advance.
hello everyone,
is it possible to instantiate a model class with it's id instead of pulling it from the db?
thanks in advance.
hello everyone,
is it possible to instantiate a model class with it’s id instead of
pulling it from the db?
SomeObject obj = SomeObject.new
obj.id = 10
Is that what you mean? What’s your use-case for this?