module SnowmanIO class Following include Mongoid::Document belongs_to :user, inverse_of: "following_joins" belongs_to :target, class_name: "SnowmanIO::User", inverse_of: "follower_joins" end end