Friday, September 20, 2024 12:16:45 AM
> settings

Customize


Authenticate

> application_presenter.rb
# frozen_string_literal: true

class ApplicationPresenter < SimpleDelegator
  attr_reader :context

  alias_method :object, :__getobj__
  alias_method :object=, :__setobj__

  delegate :view_context, to: :context, allow_nil: true

  def with_context(context)
    @context = context
    self
  end
end
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8