Sha256: 73c73304d811242232fcce109e885291d3a423a7001858581eec32f695dedb63
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
class Users::IndexView < BaseView def template { template: 'users/index', locals: { user_views: user_views, } } end private def users view_data.users end def user_views users.map do |user| user_view(user) end end def user_view(user) view_builder.build(Users::IndexView::UserView, user: user).template end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aldous-1.1.3 | examples/basic_todo/app/views/users/index_view.rb |
aldous-1.1.2 | examples/basic_todo/app/views/users/index_view.rb |