On Apr 2, 2007, at 2:54 PM, John Bachir wrote:
On Apr 2, 2007, at 7:44 AM, Jens Kraemer wrote:
If anybody knows a way to find out that a record is not fully loaded
because of a :select option was present when it was found, a fix for
this would be easy.
Do you mean, to find out which fields _were_ loaded, and then only
reindex those, maintaining the other previously indexed fields? Is
that possible?
If so, then how about:
MyModel.columns.map(&:name) - myobject.attributes.map{ |k,v| k }
This will show all of the columns that should NOT be reindexed.
But actually, wouldn't it be easier to ONLY index the columns from:
myobject.attributes.map{ |k,v| k }
?
Cheers,
John_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk