# File lib/couch_potato/persistence/callbacks.rb, line 23 def run_callbacks(name) return if skip_callbacks self.class.callbacks[name].uniq.each do |callback| if callback.is_a?(Symbol) send callback elsif callback.is_a?(Proc) callback.call self else raise "Don't know how to handle callback of type #{name.class.name}" end end end