Sha256: 26ecee5f89cfa5d34cb8649916d634e841000f452fbf9c83e99db78ed8d6fa52

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

class BaseView < ::Aldous::Respondable::Renderable
  def default_template_locals
    {
      current_user: current_user,
      header_view: header_view,
    }
  end

  def current_user
    view_data.current_user
  end

  private

  def header_view
    build_view(Modules::HeaderView)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aldous-1.0.1 examples/basic_todo/app/views/base_view.rb
aldous-1.0.0 examples/basic_todo/app/views/base_view.rb