lib/insque.rb in insque-0.7.3 vs lib/insque.rb in insque-0.7.4
- old
+ new
@@ -177,10 +177,10 @@
options = args.extract_options!
excluded = (options[:exclude] || []).map(&:to_s)
set_callback :commit, :after do
action = [:create, :update, :destroy].map {|a| a if transaction_include_any_action?([a]) }.compact.first
params = self.serializable_hash(options).delete_if {|key| (['created_at', 'updated_at'] + excluded).include? key}
- Insque.broadcast :"#{self.class.to_s.underscore}_#{action}", params
+ Insque.broadcast :"#{self.class.to_s.underscore.gsub '/', '_'}_#{action}", params
end
end
end
end