Skip to content

Instantly share code, notes, and snippets.

View s01ipsist's full-sized avatar

Sam Giffney s01ipsist

View GitHub Profile
@nz
nz / 1-sunspot-1.2-silent-fail.rb
Created December 30, 2010 20:59
Silently fail instead of raising an exception when an error occurs while writing to Solr.
###
#
# Custom write failure handling when there is an error writing to Solr.
# Install this in an initializer.
# Prints error messages to stderr.
#
# NOTE: does not fail for reads; you should catch those exceptions in your controller.
#
##