Method: Anoubis::Data::Load#load_table_data_count
- Defined in:
- app/controllers/anoubis/data/load.rb
#load_table_data_count ⇒ Object
Load total number of rows of defined model in Etc::Data#count.
15 16 17 18 |
# File 'app/controllers/anoubis/data/load.rb', line 15 def load_table_data_count #self.get_table_model.eager_load(self.get_table_eager_load).where(self.get_current_tab_where).where(self.get_table_where).where(self.etc.filter[:h]).where(self.etc.filter[:a]).count self.etc.data.count = self.get_model.eager_load(self.get_eager_load).where(self.get_tenant_where(self.get_model)).where(self.get_where).where(self.get_tab_where).where(self.get_filter_where_hash).where(self.get_filter_where_array).count end |