3 class FilterList < Base
4 attr :filter_key, :filter_item_name
7 @filter_key = @list_manifest.filter_key
8 @filter_item_name = @list_manifest.filter_item_name
9 @filter_model = ::Manifest.manifest.models[@filter_item_name].classify
10 @filter_table_name = @filter_model.table_name
15 w = self.base_where_condition
16 w += ' and ' unless w.blank?
17 [w + @table_name + '.' + @filter_key + ' = ?', self.filter_id]
22 w.merge!({@filter_item_name => {} }) unless w[@filter_item_name]
29 r = @filter_model.show(self.filter_id, @operators)
30 rescue ActiveRecord::RecordNotFound, ActiveRecord::Forbidden