1 min readApr 23, 2016
I like the solution, but I am curious why you choosen the API like
Trip.decant_new(params[:trip])
instead of
Trip.new(TripDecanter.new(params[:trip]))
Why ActiveRecord should be loaded with knowledge about your library?
I like the solution, but I am curious why you choosen the API like
Trip.decant_new(params[:trip])
instead of
Trip.new(TripDecanter.new(params[:trip]))
Why ActiveRecord should be loaded with knowledge about your library?
Software Engineer, Instructor, and Mentor. Author https://gum.co/team-lead-101. Join my newsletter https://gift.dmitryshvetsov.com/