Module: Tasks::Gis::MatchGeoreferenceHelper

Defined in:
app/helpers/tasks/gis/match_georeference_helper.rb

Instance Method Summary collapse

Instance Method Details

#collecting_events_count_using_this_error_geographic_item(gr) ⇒ Object



6
7
8
# File 'app/helpers/tasks/gis/match_georeference_helper.rb', line 6

def collecting_events_count_using_this_error_geographic_item(gr)
  gr.blank? ? 0 : Georeference.where(error_geographic_item_id: gr).with_project_id(sessions_current_project_id).pluck(:collecting_event_id).count
end

#collecting_events_count_using_this_geographic_item(gr) ⇒ Object



2
3
4
# File 'app/helpers/tasks/gis/match_georeference_helper.rb', line 2

def collecting_events_count_using_this_geographic_item(gr)
  Georeference.where(geographic_item_id: gr).with_project_id(sessions_current_project_id).pluck(:collecting_event_id).count
end