app/models/collection.rb
# NOTE: you don't want to do this unless you REALLY know what you are doing.
you don't want to do this unless you REALLY know what you are doing.
you don ' t want to do this unless you REALLY know what you are doing .
def scrub!
    clear
    name = "Violation of TOS removed"
    description = ""
    save
    solr = SolrCore::SiteSearch.new
    solr.delete_item(self)
  end
def scrub! clear name = "Violation of TOS removed" description = "" save solr = SolrCore :: SiteSearch . new solr . delete_item ( self ) end
NOTE: you don't want to do this unless you REALLY know what you are doing.
NOTE : you don ' t want to do this unless you REALLY know what you are doing .