mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 14:00:42 +08:00
Removes the duplicate identity-attribute declarations in BasicVoterSerializer in favor of the canonical chain, leaving only the voter-specific `direction` attribute on the subclass.
9 lines
152 B
Ruby
Vendored
9 lines
152 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class BasicVoterSerializer < BasicUserSerializer
|
|
attributes :direction
|
|
|
|
def direction
|
|
object.direction
|
|
end
|
|
end
|