Commit 1b884c7e by liyijie

set view path if view_path is present?

parent 3af3d44e
...@@ -21,7 +21,8 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -21,7 +21,8 @@ class SimpleController::BaseController < ::InheritedResources::Base
end end
def defaults(options) def defaults(options)
set_view_path options.delete(:view_path) view_path = options.delete(:view_path)
set_view_path view_path if view_path.present?
super(options) super(options)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment