letmein icon indicating copy to clipboard operation
letmein copied to clipboard

Hiding the .constantize model error

Open conorh opened this issue 13 years ago • 1 comments

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'

conorh avatar Nov 11 '11 21:11 conorh

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?

GBH avatar Nov 14 '11 15:11 GBH