sunspot/sunspot — pull request #535 by smdern (2014-01-17 22:41:32+00:00)
Title: Throw exception on index unpersisted object

In response to - https://github.com/sunspot/sunspot/issues/477

ActiveRecord objects shouldn't be indexed in they aren't persisted.