def init
super
- return
- @through = @list_list_conf['through']
+ @through = @model_list_manifest.through
end
def includes
- {@through => {@from => {}} }
+ {@through => {@filter_item_name => {}} }
end
- def where filter_item
+ def where filter_item_id
w = @model.list_where
w += ' and ' unless w.blank?
- [w + @through + '.' + @filter_key + ' = ?', filter_item.id]
+ p @through
+ p @filter_key
+ [w + @through + '.' + @filter_key + ' = ?', filter_item_id]
end
end