Skip to content

Commit 8d4c714

Browse files
committed
typo
1 parent 3ba0d58 commit 8d4c714

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tinyrails.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ def call(_env)
2121
_env['route.id'] = id if id
2222

2323
controller = klass.new(_env)
24-
text = controller.send(act)
24+
result = controller.send(act)
2525

2626
if result.is_a?(Array) && result.length == 3 && result[0].is_a?(Integer)
2727
result
2828
else
29-
[200, { 'content-type' => 'text/html' }, [text]]
29+
[200, { 'content-type' => 'text/html' }, [result]]
3030
end
3131

3232
rescue NameError => e

0 commit comments

Comments
 (0)