Permalink
Browse files

use string instead of block for class_eval.

  • Loading branch information...
1 parent fd5de5d commit 07757f6be98df8cb0314b9cccc513aa1b3c56460 shugo committed Feb 21, 2006
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/apache/rails-dispatcher.rb
@@ -110,9 +110,7 @@ def handler(r)
env = get_environment(r.options["rails_root"])
# set classpath for Marshal
Apache::RailsDispatcher.const_set(:CURRENT_MODULE, env.module)
- ActionView::Base.class_eval do
- @@compile_time = env.compile_time
- end
+ ActionView::Base.class_eval("@@compile_time = env.compile_time")
ActionView::Base::CompiledTemplates.module = env.compiled_templates_module
Dependencies.loaded = env.loaded_dependencies
@@current_environment = env

0 comments on commit 07757f6

Please sign in to comment.