Created
February 1, 2024 20:19
-
-
Save xunker/e0d33865b021d2a04016f9ba3f650d05 to your computer and use it in GitHub Desktop.
Simply having an EMPTY directory will make Rails 5.2 automatically add a module namespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls app/lib/salesforce/subscriptions | |
ls: app/lib/salesforce/subscriptions: No such file or directory | |
$ rails c | |
> Salesforce::Subscriptions | |
NameError: uninitialized constant Salesforce::Subscriptions | |
> exit | |
$ mkdir app/lib/salesforce/subscriptions | |
$ rails c | |
> Salesforce::Subscriptions | |
=> Salesforce::Subscriptions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment