Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MONGOID-5210 [BLOCKED] Custom field type cleanup (fix deprecation warnings) #5121

Closed

Conversation

johnnyshields
Copy link
Contributor

This PR is a follow-up from #5119 which includes its changes and also fixes all deprecation warnings. In broad strokes this means converting this:

field :foobar, type: String

to this:

field :foobar, type: :string

@johnnyshields johnnyshields changed the title MONGOID-5210 Custom field type cleanup (fix deprecation warnings) MONGOID-5210 [BLOCKED] Custom field type cleanup (fix deprecation warnings) Jan 16, 2022
…Symbol is already supported today.)

- Deprecate using field type as a Class.
- Add ability to define custom field types using a mini DSL (Mongoid::Fields.configure)
- Fix Mongoid::Fields.option documentation
@johnnyshields johnnyshields marked this pull request as draft April 25, 2022 15:00
@p-mongo
Copy link
Contributor

p-mongo commented May 9, 2022

Per https://jira.mongodb.org/browse/MONGOID-5210?focusedCommentId=4536184&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-4536184, we do not want to demand that applications using Mongoid perform the change made by this PR (search & replace of all field types).

@p-mongo p-mongo closed this May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants