lib/restfulness/request.rb in restfulness-0.2.0 vs lib/restfulness/request.rb in restfulness-0.2.1
- old
+ new
@@ -28,11 +28,11 @@
attr_accessor :query
# Raw HTTP body, for POST and PUT requests.
attr_accessor :body
- # IP address of requester
- attr_accessor :remote_ip
+ # Additional useful fields
+ attr_accessor :remote_ip, :user_agent
def initialize(app)
@app = app
# Prepare basics