Class | Ohm::MutableSet |
In: |
lib/ohm.rb
|
Parent: | Set |
Add a model directly to the set.
Example:
user = User.create post = Post.create user.posts.add(post)
Remove a model directly from the set.
Example:
user = User.create post = Post.create user.posts.delete(post)