module ActiveModelSerializers::Logging::Macros
def notify(name, callback_name)
Adapted from:
are being rendered.
each call to the dummy method, telling what the current serializer and adapter
in a dummy method. It notifies on with the +callback_name+ notifier on
Simple notify method that wraps up +name+
#
def notify(name, callback_name) class_eval do old = "_notifying_#{callback_name}_#{name}" alias_method old, name define_method name do |*args, &block| run_callbacks callback_name do send old, *args, &block end end end end