Skip to content

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