-
Notifications
You must be signed in to change notification settings - Fork 105
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
After upgrading from 4.0.1 to 5.3.1, time_ago_in_words(b.updated_at, vague: true) no longer works #125
Comments
This sounds vaguely (no pun intended) familiar. I suspect that you're no longer calling this library, but the original Rails
|
I'm getting a similar issue, though still with Rails 4.2.11, between DOTIW 4.0.1 -> 5.3.1 From the console ...
though error appears downstream in activesupport/to_sentence |
I think the issue has arisen from commit 20/11/2020 by joshuapinter ... where previous code called the activesupport method with old ..
new ..
I'd create a pull request but it's beyond my pay grade!! |
Sorry, my Rails is very rusty and I don't remember enough to understand your questions. I am making the call thus, in a file called app/views/budgets/browse.jb, which uses https://github.com/amatsuda/jb:
|
Would it be possible to get a new release now that a fix has been merged? The latest on RubyGems is the version with this bug present. I don't like tracking Thanks! |
This was fixed in #126 |
@matt-whiteley Done. |
I had to upgrade to Rails 5.2.6 yesterday to get around the MimeMagic license issue (see https://dev.to/cseeman/what-s-up-with-mimemagic-breaking-everything-he1). As the same time, dotiw got switched from 4.0.1 to 5.3.1. I now get this error which wan't present before:
Unknown key: :vague. Valid keys are: :words_connector, :two_words_connector, :last_word_connector, :locale
The line where this breaks reads:
time_ago_in_words(b.updated_at, vague: true)
Has something broken with this version change? I can't see anything in your docs or issues. If I amend the Gemfile to use 4.0.1 and
bundle update
again, the problem goes away.The text was updated successfully, but these errors were encountered: