Dmitry Shvetsov
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?

--

--

Dmitry Shvetsov
Dmitry Shvetsov

Responses (1)