Skip to content

fix: Wrap default values in () as required.#2

Merged
Connorhd merged 2 commits intofound-forkfrom
connorhd/fix-default
Feb 16, 2023
Merged

fix: Wrap default values in () as required.#2
Connorhd merged 2 commits intofound-forkfrom
connorhd/fix-default

Conversation

@Connorhd
Copy link

Fix not merged upstream, merging into our fork for now googleapis#238

Connorhd and others added 2 commits February 9, 2023 16:39
Extending ActiveRecord::Type::Time means that string values get incorrectly coerced to have a date of 2000-01-01. See https://github.com/rails/rails/blob/main/activemodel/lib/active_model/type/time.rb#L14. This is because Time in activerecord is intended to store just the time value (and maps to a TIME type in other databases), unlike Time generally in ruby that represents a date and time.x
Copy link

@kristenmills kristenmills left a comment

Choose a reason for hiding this comment

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

Lgtm

@Connorhd Connorhd merged commit e674333 into found-fork Feb 16, 2023
@Connorhd Connorhd deleted the connorhd/fix-default branch February 16, 2023 01:16
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.

2 participants