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

Provide support for BigDecimal use with float_filter #106

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

tyronewilson
Copy link

@tyronewilson tyronewilson commented Jan 11, 2017

I ran into issues in my tests where I used model.attributes to provide my inputs (e.g. for updates) where I am storing values as BigDecimal instead of Float.

Using Numeric instead of Fixnum should still work well with .to_f but will include support for BigDecimal as input.

All tests pass so I don't think I have gone against some intended behaviour. Let me know if you have any questions?

@tyronewilson
Copy link
Author

The error here looks like a Travis CI rvm configuration issue rather than an issue with the code committed.

@eugeneius
Copy link
Collaborator

Accepting BigDecimal inputs sounds reasonable 👍

It looks like there are other changes on your branch now though - do you want to remove them so I can merge this pull request, or would you prefer that I cherry-pick the BigDecimal commit manually?

@tyronewilson
Copy link
Author

I will edit the PR to have a dedicated branch for the Numeric change. If I think any of the other changes I have made for my own projects will be useful I will open in separate PRs.

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