module SpaghettiSquash::Patch::ClassMethods
Public Instance Methods
set_callback(name, *filter_list, &block)
click to toggle source
Calls superclass method
# File lib/spaghetti_squash.rb, line 6 def set_callback(name, *filter_list, &block) super name, *filter_list do type, filters, options = self.class.normalize_callback_params(filter_list, block) if in_app?(filters.first) ActiveRecord::Base.logger.info "starting callback: #{name} #{filters} #{options}" end end super super name, *filter_list do type, filters, options = self.class.normalize_callback_params(filter_list, block) if in_app?(filters.first) Rails.logger.info "finishing callback" end end end