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

Do not try to convert time if value is not there #1765

Closed
wants to merge 2 commits into from

Conversation

Fodoj
Copy link

@Fodoj Fodoj commented Sep 15, 2020

No description provided.

@pablobm
Copy link
Collaborator

pablobm commented Sep 24, 2020

Uh, good catch, thank you. I see that this guard exists for the DateTime field but not for this one.

Would you be able to add a spec? I think a view spec would do nicely in this case. You can see an example at https://github.com/thoughtbot/administrate/blob/4207c9d1fe40410738a04a5f40502b14ccbdc7a0/spec/administrate/views/fields/url/_show_spec.rb

@nickcharlton
Copy link
Member

Thanks for your contribution!

I happened to come across, rebase and merge #1226 just earlier today so I'm going to close this as we've done this now.

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