Sha256: 6ffd89fbe063e2b88edd1b0f9562843e17af17817bd2982cdd535f9fc3660697

Contents?: true

Size: 286 Bytes

Versions: 4

Compression:

Stored size: 286 Bytes

Contents

class Users::IndexView::UserView < BaseView
  def template_data
    {
      partial: 'users/index_view/user',
      locals: {
        email: user_email,
      }
    }
  end

  private

  def user
    view_data.user
  end

  def user_email
    if user
      user.email
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aldous-1.1.3 examples/basic_todo/app/views/users/index_view/user_view.rb
aldous-1.1.2 examples/basic_todo/app/views/users/index_view/user_view.rb
aldous-1.0.1 examples/basic_todo/app/views/users/index_view/user_view.rb
aldous-1.0.0 examples/basic_todo/app/views/users/index_view/user_view.rb