Skip to content

Instantly share code, notes, and snippets.

@pristinenoise
Created March 12, 2012 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pristinenoise/2023471 to your computer and use it in GitHub Desktop.
Save pristinenoise/2023471 to your computer and use it in GitHub Desktop.
blacklight reset configuration
def reset_configuration( config )
if not config.methods.select { | method_name |
method_name =~ /^facet_fields|^index_fields|^search_fields|^show_fields|^sort_fields/ }.empty?
config.facet_fields = {}
config.index_fields = {}
config.search_fields = {}
config.show_fields = {}
config.sort_fields = {}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment