b1d66ca15c
To use different decorators in different contexts (e.g. HTML rendering vs. API representation), the ability to specify a decorator namespace is added. For example: > Product.new.decorate => #<ProductDecorator:0x0000010b6e47e8> > Product.new.decorate(:namespace => HTML) => #<HTML::ProductDecorator:0x0000010b6e47e9> |
||
---|---|---|
.. | ||
decoratable | ||
view_context | ||
collection_decorator_spec.rb | ||
decoratable_spec.rb | ||
decorated_association_spec.rb | ||
decorates_assigned_spec.rb | ||
decorator_spec.rb | ||
factory_spec.rb | ||
finders_spec.rb | ||
helper_proxy_spec.rb | ||
lazy_helpers_spec.rb | ||
view_context_spec.rb | ||
view_helpers_spec.rb |