Ruby's Class.allocate & ActiveRecord::Base.find
I just came across ruby’s Class.allocate method when learning how ActiveRecord returns objects from ActiveRecord::Base.find and I figure I would share it! Read here.
I just came across ruby’s Class.allocate method when learning how ActiveRecord returns objects from ActiveRecord::Base.find and I figure I would share it! Read here.
Post a comment