Categories: None [Edit]
active_model_presenter
Presenters and Model-View-Presenter (MVP) is the second most useful pattern after Service Objects to simplify your medium-to-large app.
ActiveModelPresenter is a small gem that transforms ActiveRecord models into simple decorated objects that you can use to pass data for a JSON or a regular View rendering.
It's based on Rails' **active_model_serializers** gem (AMS) so you get all it's features without creating any new type of files.
It can be used as a layer for Rails between Controller and View to make data to flow in 1 direction.
Total
Ranking: 126,267 of 195,956
Downloads: 5,471
Daily
Ranking: 46,702 of 195,929
Downloads: 5
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 381 | 136,125,480 | active_model_serializers |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | serhii_mo |