DEV Community

Discussion on: Where to start refactoring.

Collapse
 
thecodetrane profile image
Michael Cain

Word. That could be an epic in itself, yeah? “Abstract presentational code to helpers” and have stories for each model/model type. That way, if you work in chunks you can CI your changes.

Thread Thread
 
drbragg profile image
Drew Bragg

Since rails is serving as only an api in this instance I figured I could use decorators pretty heavily in the json responses and really DRY up both the jbuilder files and my models.