Sha256: 0f046efaa02fcee9b65da93e6967d2984342dd2d1d0a99cdc00b8934077bdebb

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

class User
  include Mongoid::Document
  include Mongoid::Followee
  include Mongoid::Follower

  field :name

  def after_follow(followee)
    # after follower follows
  end

  def after_followed_by(follower)
    # after followee is followed
  end

  def after_unfollowed_by(followee)
    # after follower unfollows
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid_follow-0.2.3 spec/models/user.rb
mongoid_follow-0.2.2 spec/models/user.rb
mongoid_follow-0.2.1 spec/models/user.rb