Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of constant name usage for stack trace help in favor of overr…
…iding #inspect and .name.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ee37ff4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting uninitialized constant ActionView::Base::CONTROLLER_CLASS .
trace: http://pastie.org/655201
ee37ff4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot: using ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
ee37ff4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code fails for me in two points:
on L243 it can't find CONTROLLER_CLASS because for some reason it doesn't get defined properly on my system.
the second is that at some point activesupport/lib/active_support/configurable.rb will call modules.last.const_get(name) and if CONTROLLER_CLASS is defined will raise wrong constant name on string "ActionView for MyController".