Commit 9487c0bf by liyijie

Use set_view_path intead of view_path=

parent 6fda67ed
class <%= controller_class_name %>Controller < SimpleController::BaseController class <%= controller_class_name %>Controller < SimpleController::BaseController
view_path = '<%= view_class_path %>' set_view_path '<%= view_class_path %>'
<% if auth.present? %>acts_as_auth_action :<%= auth.downcase %><% end %> <% if auth.present? %>acts_as_auth_action :<%= auth.downcase %><% end %>
private private
......
...@@ -15,7 +15,7 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -15,7 +15,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
protected protected
def self.view_path= path def self.set_view_path path
@view_path = path @view_path = path
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