module Mongoid::Relations::Touchable::ClassMethods
Public Instance Methods
touchable(metadata)
click to toggle source
# File lib/patches/embedded_touch.rb, line 39 def touchable(metadata) if metadata.touchable? name = metadata.name method_name = define_relation_touch_method(name) after_save method_name after_destroy method_name after_touch method_name end self end