Skip to content

Commit 16ed420

Browse files
committed
check @response instead of response
1 parent dc35d19 commit 16ed420

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tinyrails/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def render_to_string(view_name, locals = {})
2828
end
2929

3030
def response(text, status=200, headers={})
31-
raise "Already responded!" if response
31+
raise "Already responded!" if @response
3232

3333
a = [text].flatten
3434
@response = Rack::Response.new(a, status, headers)

0 commit comments

Comments
 (0)