Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add rake task for building an index

  • Loading branch information...
commit a53beb7df3176860fcc707abf5121b025f921a6d 1 parent 1876d90
@jamesgolick authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/tasks/friendly.rake
View
7 lib/tasks/friendly.rake
@@ -0,0 +1,7 @@
+namespace :friendly do
+ task :build_index do
+ klass = ENV['KLASS'].constantize
+ fields = ENV['FIELDS'].split(',').map { |f| f.to_sym }
+ Friendly::Indexer.populate(klass, *fields)
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.