Sha256: 5f2420bdd5104e3e6c3cece16d22b7bc82f5026613baadcfe515710de269241d

Contents?: true

Size: 305 Bytes

Versions: 7

Compression:

Stored size: 305 Bytes

Contents

module Railjet
  class PresenterContext < SimpleDelegator
    attr_reader :view

    def initialize(context, view_context)
      super(context)
      @view = view_context
    end

    def repository
      raise NoMethodError, "Acessing Repository from Presenter is a no-no 🙅‍♂️"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
railjet-4.0.0 lib/railjet/presenter_context.rb
railjet-3.5.0 lib/railjet/presenter_context.rb
railjet-3.4.0 lib/railjet/presenter_context.rb
railjet-3.3.0 lib/railjet/presenter_context.rb
railjet-3.2.0 lib/railjet/presenter_context.rb
railjet-3.1.0 lib/railjet/presenter_context.rb
railjet-3.0.0 lib/railjet/presenter_context.rb