Module: Mongoid::Relations::Touchable::ClassMethods
- Defined in:
- lib/mongoid/relations/touchable.rb
Instance Method Summary collapse
-
#touchable(metadata) ⇒ Class
Add the metadata to the touchable relations if the touch option was provided.
Instance Method Details
#touchable(metadata) ⇒ Class
Add the metadata to the touchable relations if the touch option was provided.
25 26 27 28 |
# File 'lib/mongoid/relations/touchable.rb', line 25 def touchable() self.touchables.push(.name) if .touchable? self end |