Skip to content

Conversation

@lest
Copy link
Member

@lest lest commented Apr 8, 2017

There are libraries that dump SQL queries to JSON. In case a record
is created or updated, query bound attributes reference a custom
AR type for enumerized attributes. So it needs to support dumping
to JSON.

@lest lest mentioned this pull request Apr 8, 2017
@lest lest requested a review from nashby April 21, 2017 18:18

it 'has AR type JSON serializable' do
type = User
type = User.type_for_attribute('status')
Copy link
Member

Choose a reason for hiding this comment

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

hrm, is it right? Can't see any assert.

Copy link
Member Author

Choose a reason for hiding this comment

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

🎣 nice catch! updated

There are libraries that dump SQL queries to JSON. In case a record
is created or updated, query bound attributes reference a custom
AR type for enumerized attributes. So it needs to support dumping
to JSON.
@lest lest force-pushed the ar-type-to-json branch from 5133a51 to e601cde Compare April 21, 2017 18:34
@lest lest merged commit dc39392 into master Apr 21, 2017
@lest lest deleted the ar-type-to-json branch April 21, 2017 19:01
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