Popularity
5.3
Stable
Activity
4.2
Stable
746
38
91

Description

A simple and Rubyish view helper for Rails 3, Rails 4 and Rails 5. Keep your helpers and views Object-Oriented!

Features ----------

Automatically mixes decorator module into corresponding model only when: - passing a model or collection of models or an instance of ActiveRecord::Relation from controllers to views - rendering partials with models (using :collection or :object or :locals explicitly or implicitly) - fetching already decorated Active Record model object's association - the decorator module runs in the model's context. So, you can directly call any attributes or methods in the decorator module - since decorators are considered as sort of helpers, you can also call any ActionView's helper methods such as content_tag or link_to

Monthly Downloads: 43,536
Programming language: Ruby
License: MIT License

ActiveDecorator alternatives and similar gems

Based on the "Decorators" category

Do you think we are missing an alternative of ActiveDecorator or a related project?

Add another 'Decorators' Gem