fix association scoping for real-time indices
handle has_many :through association scoping

using a pluralized multi attribute name causes the foreign-key check to
fail
Merge pull request #705 from thewebfellas/realtime_index_association_scope

Realtime index association scope