Sha256: 3c0984b84d7a2e12cf4fbba0b8c9c5dde907025de1e02ed44acebbdf5ae217ad

Contents?: true

Size: 400 Bytes

Versions: 33

Compression:

Stored size: 400 Bytes

Contents

class ApplicationController < ActionController::Base
  class NotificationsStub
    include Enumerable

    def each
      [OpenStruct.new(dismiss!: true)].each do |element|
        yield element
      end
    end

    def save
      true
    end
  end

  def require_login
    @current_user = OpenStruct.new(notifications: NotificationsStub.new)
  end

  def current_user
    @current_user
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
ama_layout-11.5.1 spec/internal/app/controllers/application_controller.rb
ama_layout-11.5.0 spec/internal/app/controllers/application_controller.rb
ama_layout-11.4.0 spec/internal/app/controllers/application_controller.rb
ama_layout-11.3.1 spec/internal/app/controllers/application_controller.rb
ama_layout-11.3.0 spec/internal/app/controllers/application_controller.rb
ama_layout-11.2.0 spec/internal/app/controllers/application_controller.rb
ama_layout-11.1.0 spec/internal/app/controllers/application_controller.rb
ama_layout-10.2.0 spec/internal/app/controllers/application_controller.rb
ama_layout-10.1.0 spec/internal/app/controllers/application_controller.rb
ama_layout-10.0.1 spec/internal/app/controllers/application_controller.rb
ama_layout-9.5.3 spec/internal/app/controllers/application_controller.rb
ama_layout-9.5.2 spec/internal/app/controllers/application_controller.rb
ama_layout-9.5.1 spec/internal/app/controllers/application_controller.rb
ama_layout-9.5.0 spec/internal/app/controllers/application_controller.rb
ama_layout-9.4.1 spec/internal/app/controllers/application_controller.rb
ama_layout-9.4.0 spec/internal/app/controllers/application_controller.rb
ama_layout-9.3.0 spec/internal/app/controllers/application_controller.rb
ama_layout-9.2.0 spec/internal/app/controllers/application_controller.rb
ama_layout-9.1.0 spec/internal/app/controllers/application_controller.rb
ama_layout-9.0.0 spec/internal/app/controllers/application_controller.rb