Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Hiding the .constantize model error#8

Open
conorh wants to merge 1 commit into
GBH:masterfrom
conorh:master
Open

Hiding the .constantize model error#8
conorh wants to merge 1 commit into
GBH:masterfrom
conorh:master

Conversation

@conorh

@conorh conorh commented Nov 11, 2011

Copy link
Copy Markdown

Is there any reason for hiding the error if the code is unable to constantize a LetMeIn model from the config? I spent a while tracking down an error in my code where I had a typo in the User model, but the error appeared to be a LetMeIn error (the UserSession model never get created).

I've attached a short patch that removes the 'rescue next'

@GBH

GBH commented Nov 14, 2011

Copy link
Copy Markdown
Owner

I think the issue was that if you add letmein to your Gemfile before any of your models things like rails g model User will crash. I see what you mean though. Maybe some sort of logging in the dev/test mode would be useful?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants