Consider a model without an initialize method, defined as follows:
class User < ActiveRecord::Base
end
It has 2 properties: name & age.
It is possible to create a new object by calling User.new('Joe Brown', 21)? Is there another “shorthand” way of creating the object?
Or do you have to define an initialize method in order to do this in one line?
With ActiveRecord: