Skip to content

Conversation

@faheemKamboh
Copy link
Contributor

Updated nil? and empty? positions and added specs.

@faheemKamboh
Copy link
Contributor Author

@eelcoj Hi, could you please help merge this PR and release the version?

@eelcoj
Copy link
Collaborator

eelcoj commented Oct 10, 2025

Interesting @faheemKamboh! Thanks for the PR. What issue was/is this causing?

@faheemKamboh
Copy link
Contributor Author

faheemKamboh commented Oct 10, 2025

What issue was/is this causing?

@eelcoj It turned out that in my case, the provider wasn’t being set properly, which led to a NoMethodError (undefined method 'empty?' for nil) error. Unfortunately, I wasn’t getting the full Rails backtrace, so it took me a while to trace it down. Eventually, I discovered that nil? was being called after empty?, which caused the issue — just a small but tricky mistake.

@eelcoj eelcoj merged commit d98c395 into Rails-Designer:main Oct 10, 2025
1 check passed
@eelcoj
Copy link
Collaborator

eelcoj commented Oct 10, 2025

Thanks a bunch for this PR, @faheemKamboh. The first real addition to Courrier from someone else than me! ❤️

@faheemKamboh faheemKamboh deleted the fix/nil_provider_error branch October 10, 2025 08:21
@faheemKamboh
Copy link
Contributor Author

@eelcoj please let me know if I can support with anything; I’d be glad to help.

@eelcoj
Copy link
Collaborator

eelcoj commented Oct 10, 2025

Thanks! Any of the open issues would be worth exploring. I think especially #14 is not too big of a feature? Let me know if you need any guidance/help. 👍

And as you start using Courrier more, you might find other odd thingsbugs. 😊

@faheemKamboh
Copy link
Contributor Author

I think especially #14 is not too big of a feature? Let me know if you need any guidance/help. 👍

Thanks, @eelcoj. I’ll look into it and reach out if I need any guidance.

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.

2 participants