mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
10 lines
241 B
Ruby
10 lines
241 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class Api::PointSerializer < PointSerializer
|
||
|
|
EXCLUDED_ATTRIBUTES = %w[created_at updated_at visit_id import_id user_id raw_data].freeze
|
||
|
|
|
||
|
|
def call
|
||
|
|
point.attributes.except(*EXCLUDED_ATTRIBUTES)
|
||
|
|
end
|
||
|
|
end
|