Request cleanup

This commit is contained in:
2014-07-29 20:25:42 +02:00
parent 7443d3b08b
commit 2d0e656c96
10 changed files with 25 additions and 10 deletions
+1
View File
@@ -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)