Skip to content

Instantly share code, notes, and snippets.

@xunker
Created February 1, 2024 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xunker/e0d33865b021d2a04016f9ba3f650d05 to your computer and use it in GitHub Desktop.
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
$ 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