Request cleanup
This commit is contained in:
@@ -69,6 +69,7 @@ class << uc
|
||||
end
|
||||
uc.instance_variable_set('@_request', uc.request)
|
||||
for action in uc.action_methods
|
||||
next unless action == 'index'
|
||||
if File.exist?(Rails.root.join('app', 'views', 'user', "#{action}.html.slim"))
|
||||
puts "action #{action} found"
|
||||
result = uc.render_to_string(action: action.dup)
|
||||
|
||||
Reference in New Issue
Block a user