← Graph

acts_as_api

tool 1 connections

Rails gem that lets developers declare API response representations inside their ActiveRecord model. Used in Counterintuitive Rails pt. 1 as an example of an MVC-violating gem: the logic isn't about the model, it's a view declaration embedded in the model describing how the view is generated, so the layers collapse.

category
library
about
acts_as_api tool
Cited as an example of a gem that violates MVC by embedding views inside models.

Provenance

Read by
25 extractions