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

Format date with #to_fs #5863

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Format date with #to_fs #5863

merged 1 commit into from
Oct 3, 2024

Conversation

alepore
Copy link
Contributor

@alepore alepore commented Oct 3, 2024

Summary

Hello!!!

The #to_s(format) method was deprecated and removed from Rails 7.0, the correct method is now #to_fs.
This is causing ActionView::Template::Error wrong number of arguments (given 1, expected 0)
when a tax rate with an expiration date is displayed.

The test was passing just because an expiration date was not set.

Checklist

The #to_s(format) method was deprecated and removed from Rails 7.1.
This is causing `ActionView::Template::Error wrong number of arguments (given 1, expected 0)`
when a tax rate with an expiration date is displayed.
@alepore alepore requested a review from a team as a code owner October 3, 2024 12:48
@github-actions github-actions bot added the changelog:solidus_backend Changes to the solidus_backend gem label Oct 3, 2024
@tvdeyen
Copy link
Member

tvdeyen commented Oct 3, 2024

Hey @alepore 👋🏻

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.23%. Comparing base (8182cb2) to head (22e8e80).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5863   +/-   ##
=======================================
  Coverage   89.23%   89.23%           
=======================================
  Files         752      752           
  Lines       17510    17510           
=======================================
  Hits        15625    15625           
  Misses       1885     1885           
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen added the backport-v4.3 Backport this pull-request to v4.3 label Oct 3, 2024
@kennyadsl kennyadsl merged commit ec4d36a into solidusio:main Oct 3, 2024
18 checks passed
Copy link

github-actions bot commented Oct 3, 2024

💚 All backports created successfully

Status Branch Result
v4.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@kennyadsl
Copy link
Member

Thanks @alepore ! ❤️

@alepore alepore deleted the alepore/to_fs branch October 4, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v4.3 Backport this pull-request to v4.3 changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants