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

Hiding the .constantize model error #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

conorh
Copy link

@conorh conorh commented Nov 11, 2011

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
Copy link
Owner

GBH commented Nov 14, 2011

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