Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define before_remove_const callback #477

Merged
merged 1 commit into from Feb 17, 2013
Merged

Define before_remove_const callback #477

merged 1 commit into from Feb 17, 2013

Conversation

haines
Copy link
Contributor

@haines haines commented Feb 17, 2013

Avoids reloading the model class when ActiveSupport clears autoloaded dependencies in development mode.

Closes #465.

steveklabnik added a commit that referenced this pull request Feb 17, 2013
Define `before_remove_const` callback
@steveklabnik steveklabnik merged commit 9efda27 into drapergem:master Feb 17, 2013
@steveklabnik
Copy link
Member

Neat. Didn't know about this. Thanks for the investigation!

@haines haines deleted the issue_465 branch February 19, 2013 07:47
@haines
Copy link
Contributor Author

haines commented Feb 19, 2013

No problem! It was a tricky bug with a simple fix, which is a lot better than the other way around 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model does not reload
2 participants