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.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
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