Skip to content

Instantly share code, notes, and snippets.

@23inhouse
Created September 8, 2011 04:46
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 23inhouse/1202649 to your computer and use it in GitHub Desktop.
Save 23inhouse/1202649 to your computer and use it in GitHub Desktop.
- app
- controllers
- seller # namespaced like an admin but for sellers
whatevere.rb # must have a file in here
- models
seller.rb
$ rspec spec
Exception encountered: #<RuntimeError: Already memoized foobar> # foobar is inside models/seller.rb
If i change the controller/seller to controller/sellers (plural) there is no double loading of the seller.rb model file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment