module ActivePubsub::SubscribeToChanges::ClassMethods

Public Instance Methods

on_change(attribute_name, &block) click to toggle source
# File lib/active_pubsub/subscribe_to_changes.rb, line 21
def on_change(attribute_name, &block)
  attributes_to_watch_for_changes[attribute_name] = block
end