master
# frozen_string_literal: true class OfficeUser < ApplicationRecord belongs_to :office belongs_to :user scope :notifiable, lambda { joins(:user).where(send_notifications: true).merge(User.notifiable) } end