Permalink
Browse files

Fix Ruby warning: instance variable @loaded not initialized

  • Loading branch information...
brynary committed Oct 29, 2009
1 parent 1a93e93 commit 6fdd60e65cfb8c0ab04233f9fef5dcbff01579a6
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/action_view/template.rb
@@ -57,6 +57,11 @@ def relative_path_for_template_file(full_file_path)
end
class EagerPath < Path
+ def initialize(path)
+ super
+ @loaded = false
+ end
+
def load!
return if @loaded

0 comments on commit 6fdd60e

Please sign in to comment.