mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
9 lines
241 B
Ruby
9 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
|