Sha256: bd96c922a332363e02023cb32fa82733073b813518c198f83c948668cba5a35a
Contents?: true
Size: 276 Bytes
Versions: 35
Compression:
Stored size: 276 Bytes
Contents
require_dependency "collection_presenter" module PresenterHelper def present(object, presenter_class = nil, &block) if object.respond_to?(:each) CollectionPresenter.new(object, presenter_class, &block) else presenter_class.new(object) end end end
Version data entries
35 entries across 35 versions & 1 rubygems