We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc35d19 commit 16ed420Copy full SHA for 16ed420
1 file changed
lib/tinyrails/controller.rb
@@ -28,7 +28,7 @@ def render_to_string(view_name, locals = {})
28
end
29
30
def response(text, status=200, headers={})
31
- raise "Already responded!" if response
+ raise "Already responded!" if @response
32
33
a = [text].flatten
34
@response = Rack::Response.new(a, status, headers)
0 commit comments