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

Added support for nil date input. #56

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

saboter
Copy link

@saboter saboter commented May 14, 2020

Would be nice if the localized assign did not fail on nil date input.

E.g. object.localized({date_col: nil}) throws now:

no implicit conversion of nil into String
# /Users/work/.rvm/gems/ruby-2.5.8/gems/i18n_alchemy-0.3.1/lib/i18n_alchemy/date_parser.rb:9:in `_strptime'

@saboter
Copy link
Author

saboter commented Dec 16, 2020

Bump

1 similar comment
@saboter
Copy link
Author

saboter commented Mar 16, 2021

Bump

@carlosantoniodasilva
Copy link
Owner

@saboter hey hey, apologies for not getting back here... this is on my radar, just haven't had time lately but I'll be taking a look soon. Thanks.

@saboter
Copy link
Author

saboter commented Mar 24, 2021

@carlosantoniodasilva Hello. Good news, thank you.

I have enabled rails 6.1 in my fork in between which most probably broke the CI tests.

@carlosantoniodasilva
Copy link
Owner

@saboter right, thanks for that. I'm looking into those right now 👍

@saboter
Copy link
Author

saboter commented Mar 24, 2021

The fork is deployed in production for couple of days with newest Rails and so far no issues.

@saboter
Copy link
Author

saboter commented Mar 21, 2023

Bump :).

@saboter
Copy link
Author

saboter commented Jan 18, 2024

Bump.
Works also under Rails 7.1

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.

3 participants