Sha256: b8a0ba3a0a0867db34a850e2ec90188f6af73eb0e42e32a0467058752f93fb25
Contents?: true
Size: 560 Bytes
Versions: 149
Compression:
Stored size: 560 Bytes
Contents
class ListContainer attr_accessor :lists, :block def initialize(&block) @lists = [] @block = block end def add(list_id, list = nil, text = nil, options = {}, &block) text, options, list = list, text, block if block_given? options, text = text, options if Hash === text if list and (Proc === list or list.any?) @lists << [list_id, list, text, options] end end end module EntityRESTHelpers def list_container_render(container) partial_render('entity_partials/list_container', :container => container) end end
Version data entries
149 entries across 149 versions & 1 rubygems