Browse files

Silence warning: instance variable @real_format not initialized

  • Loading branch information...
1 parent 17fda24 commit a0d28dcfd485bcf8e9ce7d8f9c142eb149465cdb @brynary brynary committed Nov 9, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/action_controller/layout.rb
View
5 actionpack/lib/action_controller/layout.rb
@@ -194,6 +194,11 @@ def normalize_conditions(conditions)
end
end
+ def initialize(*args)
+ super
+ @real_format = nil
+ end
+
# Returns the name of the active layout. If the layout was specified as a method reference (through a symbol), this method
# is called and the return value is used. Likewise if the layout was specified as an inline method (through a proc or method
# object). If the layout was defined without a directory, layouts is assumed. So <tt>layout "weblog/standard"</tt> will return

0 comments on commit a0d28dc

Please sign in to comment.