Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use defined? check since @view_paths may be uninitialized

  • Loading branch information...
commit 3c658512a1fb561743bf626b9655c86765510f06 1 parent 1b94d5d
@jeremy jeremy authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/lib/action_controller/base.rb
View
6 actionpack/lib/action_controller/base.rb
@@ -434,7 +434,11 @@ def hide_action(*names)
# render("test/template") will be looked up in the view load paths array and the closest match will be
# returned.
def view_paths
- @view_paths || superclass.view_paths
+ if defined? @view_paths
+ @view_paths
+ else
+ superclass.view_paths
+ end
end
def view_paths=(value)
Please sign in to comment.
Something went wrong with that request. Please try again.