That code blip sends a shiver up my spine.
My previous code shop maintained a fairly large rails base and we mitigated that risk by doing as many things "the rails way" as possible, even if it took more time than some ruby hack.
When you consider how quickly new hires could pick up the project, it easily outweighed the extra effort designing code in a well-understood format.