Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 412f929781
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (8 sloc) 0.253 kB
load "config/active_record.rb"
load "config/index_tank.rb"
class Tweet < ActiveRecord::Base
after_create { |tweet|
puts "Indexing tweet: #{tweet["text"]}"
$index.document(tweet.to_param).add(:text => tweet.text, :user => tweet.user)
}
end
Jump to Line
Something went wrong with that request. Please try again.