Comments (8)
Filled an issue here too: mislav/will_paginate#190
from ruby-units.
Seems like ActionPack chokes in scope_key_by_partial
because of the way ruby-units implements the String#to
method. ActiveSupport probably expects #to
to behave in a different way.
I think ruby-units is too liberal in extending the String class.
from ruby-units.
Yeah, I've been regretting that for a while now.
from ruby-units.
@olbrich Any plans on improving this? Otherwise it's barely usable with rails... :-(
from ruby-units.
I don't know the cause of exact error but I gave a pretty good hint above. If you're using this lib, you might want to debug to find out the exact cause of the error and monkeypatch it. It shouldn't be too hard
from ruby-units.
Yeah, I'm looking into fixing it this weekend.
from ruby-units.
This should be mitigated with the new 1.3.2.a pre-release gem. I've removed a lot of the helpers and pushed them into a file that is not automatically required. I'll probably remove them completely in a future release. Let me know if it works better as I have not had a chance to use the new pre-release gem with an actual rails application yet. I'll release it for real after I'm sure that it will work.
from ruby-units.
fixed #22 in 1.3.2
from ruby-units.
Related Issues (20)
- Complex comparisons work differently in Ruby 2.7
- Dependabot can't resolve your Ruby dependency files
- round function should return decimal number (sometimes returns fraction) HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Inches: anything not between -9 and 9 parses incorrectly
- Question/discuss: simplification of units after division HOT 4
- Remove `chunk_while` workaround for old jruby
- Support for fractional dimensions HOT 1
- Floats are converted to Integer when doing simple conversions HOT 1
- convert_to won't recognize temperature aliases as temperatures
- Awareness of Units Summit Summer 2022 HOT 1
- Question - Creation of new Unit Definition HOT 2
- 5' 3/4" doesn't parse correctly
- `remainder`, `quo` and `divmod` are not strictly correct
- Parenthesis in unit names aren't recognised HOT 1
- ArgumentError parsing 1:00 HOT 3
- Unit not recognized error after 4.0.0 upgrade HOT 3
- Unit format if numerator is 1 in unit faction HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-units.