You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/09/28 15:18:42 UTC

svn commit: r580343 - in /lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers: ./ application_helper.rb

Author: ehatcher
Date: Fri Sep 28 06:18:42 2007
New Revision: 580343

URL: http://svn.apache.org/viewvc?rev=580343&view=rev
Log:
Move flare helper method into plugin too

Added:
    lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers/
    lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers/application_helper.rb   (with props)

Added: lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers/application_helper.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers/application_helper.rb?rev=580343&view=auto
==============================================================================
--- lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers/application_helper.rb (added)
+++ lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers/application_helper.rb Fri Sep 28 06:18:42 2007
@@ -0,0 +1,5 @@
+module ApplicationHelper
+  def facet_label(field)
+     field.match(/(.*)_.*/)[1].humanize.downcase
+  end
+end

Propchange: lucene/solr/trunk/client/ruby/flare/vendor/plugins/flare/app/helpers/application_helper.rb
------------------------------------------------------------------------------
    svn:executable = *