mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
14 lines
292 B
Ruby
14 lines
292 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PointValidation
|
|
extend ActiveSupport::Concern
|
|
|
|
def point_exists?(params, user_id)
|
|
Point.where(
|
|
lonlat: params[:lonlat],
|
|
timestamp: params[:timestamp].to_i,
|
|
tracker_id: params[:tracker_id],
|
|
user_id:
|
|
).exists?
|
|
end
|
|
end
|