How to detect changes in has_many through association?

I have the following models. class Company < ApplicationRecord has_many :company_users has_many :users, :through => :company_users after_update :do_something private def do_something # check if users of the company have been updated here end end class User < ApplicationRecord has_many :company_users has_many :companies, :through => :company_users end class CompanyUser < ApplicationRecord belongs_to :company belongs_to :user end…

Details

Dock disappeared after changing screen (no restart, no other changes) (ubuntu 18.04.3)

As it says above. Seems like this should be common, but I couldn’t find anything answering this question. I upgraded from 21 to 32 inch, and from HDMI to DisplayPort, but didn’t change anything or restart (would rather not restart if not necessary). Display resolution increased to native of new monitor. I have tried changing…

Details