We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ba0d58 commit 8d4c714Copy full SHA for 8d4c714
1 file changed
lib/tinyrails.rb
@@ -21,12 +21,12 @@ def call(_env)
21
_env['route.id'] = id if id
22
23
controller = klass.new(_env)
24
- text = controller.send(act)
+ result = controller.send(act)
25
26
if result.is_a?(Array) && result.length == 3 && result[0].is_a?(Integer)
27
result
28
else
29
- [200, { 'content-type' => 'text/html' }, [text]]
+ [200, { 'content-type' => 'text/html' }, [result]]
30
end
31
32
rescue NameError => e
0 commit comments