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.
On 19 May 2012 00:28, mengu [email protected] wrote:
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?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs