Fix SimileController that broke with the plugin change

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@522710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-03-27 02:00:17 +00:00
parent 79bb0f1421
commit 9901f0a29c
1 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,8 @@
class SimileController < ApplicationController
before_filter :flare_before
def exhibit
@data = @flare.search(0, 10)
@ -32,4 +34,14 @@ class SimileController < ApplicationController
format.xml # renders timeline.rxml
end
end
#TODO: this is duplicated from flare's
private
def flare_before
# TODO: allow source of context to be configurable.
session[:flare_context] ||= Flare::Context.new(SOLR_CONFIG)
@flare = session[:flare_context]
end
end