Sha256: 4556c687ace0b3ac0c1ca54fe4bb0b95fec1137b9c185a1036f066798948fc34
Contents?: true
Size: 375 Bytes
Versions: 2
Compression:
Stored size: 375 Bytes
Contents
class Todos::IndexView < BaseView def template_data { template: 'todos/index', locals: { todo_views: todo_views, } } end private def todos view_data.todos end def todo_views todos.map do |todo| todo_view(todo) end end def todo_view(todo) build_view(Todos::IndexView::TodoView, todo: todo) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aldous-1.0.1 | examples/basic_todo/app/views/todos/index_view.rb |
aldous-1.0.0 | examples/basic_todo/app/views/todos/index_view.rb |