mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
13 lines
253 B
Ruby
13 lines
253 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,
|
|
user_id:
|
|
).exists?
|
|
end
|
|
end
|