RubyGems Navigation menu

active_model_presenter 0.0.5

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.

Gemfile:
=

安裝:
=

版本列表:

  1. 0.1.2 - September 02, 2018 (4.5 KB)
  2. 0.0.5 - June 28, 2018 (4.5 KB)
顯示所有版本(共 3)

Runtime 相依性套件 (2):

hashie >= 3.5.0

Development 相依性套件 (9):

bundler ~> 1.3
pry >= 0
rake >= 0
rspec >= 0
rubocop >= 0
simplecov >= 0
sqlite3 >= 0
yard >= 0

擁有者:

作者:

  • Sergii Mostovyi

SHA 256 總和檢查碼:

=

總下載次數 4,701

這個版本 2,132

版本发布:

授權:

MIT

Ruby 版本需求: >= 0

相關連結: