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

Remove autoload for non-existing constants #1415

Merged
merged 1 commit into from May 31, 2011
Merged

Remove autoload for non-existing constants #1415

merged 1 commit into from May 31, 2011

Conversation

brainopia
Copy link
Contributor

Previously ActionView contained TemplateHandler, TemplateHandlers (@d182b6ee9c99901553e6 removed them), but declarations of autoload for these constants are still there. I've removed them in this patch since they don't exist anymore.

Backstory:
I've found out about this when was figuring out why haml stopped working with latest head of rails. Turned out haml was checking for ActionView.const_defined?("TemplateHandlers") which returned true because of autoload for this constant, but was failing afterwords since this constant doesn't exist.

josevalim added a commit that referenced this pull request May 31, 2011
Remove autoload for non-existing constants
@josevalim josevalim merged commit 752dec9 into rails:master May 31, 2011
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.

None yet

2 participants