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