Class: Mumuki::Classroom::Follower
- Inherits:
-
Document
- Object
- Document
- Mumuki::Classroom::Follower
show all
- Includes:
- Mongoid::Timestamps
- Defined in:
- lib/mumuki/classroom/models/follower.rb
Instance Method Summary
collapse
Methods inherited from Document
inherited, whitelist_attributes
Instance Method Details
#add!(uid) ⇒ Object
11
12
13
|
# File 'lib/mumuki/classroom/models/follower.rb', line 11
def add!(uid)
self.add_to_set uids: uid
end
|
#remove!(uid) ⇒ Object
15
16
17
|
# File 'lib/mumuki/classroom/models/follower.rb', line 15
def remove!(uid)
self.pull uids: uid
end
|