Skip to content

Conversation

@cryptomail
Copy link
Contributor

…alized from global meta data garnered from account context

@cryptomail cryptomail marked this pull request as ready for review October 17, 2025 21:59
@cryptomail cryptomail requested a review from a team as a code owner October 17, 2025 21:59
@cryptomail cryptomail force-pushed the jteitelbaum/ticket_field_magic_mapping branch from 6df1c09 to 6895045 Compare October 17, 2025 22:15
…alized from global meta data garnered from account context
@cryptomail cryptomail force-pushed the jteitelbaum/ticket_field_magic_mapping branch from 01c4316 to 1cad2d1 Compare October 21, 2025 20:26
Comment on lines +512 to +519
def custom_field_symbol
@custom_field_symbol ||= CustomFieldSymbolProxy.new(self, @custom_field_symbol)
end

def custom_field_symbol=(val)
@custom_field_symbol = val
@custom_field_symbol_proxy = CustomFieldSymbolProxy.new(self, @custom_field_symbol)
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom_field_symbol= overwrites @custom_field_symbol with the raw array and caches a proxy in @custom_field_symbol_proxy, but the getter still memoizes on @custom_field_symbol. After the first assignment (or any mass-assignment that sets this ivar) subsequent reads return the plain array and ticket.custom_field_symbol['foo'] will raise a TypeError when trying to index an array with a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants