letmein
letmein copied to clipboard
Hiding the .constantize model error
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'
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?