1 2 3 4 5 6 7
module GhostUser extend ActiveSupport::Concern def ghost_user? user && user.ghost? end end