lib/plezi/handlers/controller_magic.rb in plezi-0.10.15 vs lib/plezi/handlers/controller_magic.rb in plezi-0.10.16

- old
+ new

@@ -27,13 +27,16 @@ attr_reader :request # the :params variable contains all the parameters set by the request (/path?locale=he => params ["locale"] == "he"). attr_reader :params - # a cookie-jar to get and set cookies (set: `cookie [:name] = data` or get: `cookie [ :name ]`). + # A cookie-jar to get and set cookies (set: `cookie [:name] = data` or get: `cookie [ :name ]`). # # Cookies and some other data must be set BEFORE the response's headers are sent. attr_reader :cookies + + # Session data can be stored here (for now, session data doesn't scale - coming soon). + attr_reader :session # the HTTPResponse **OR** the WSResponse object that formats the response and sends it. use `response << data`. This object can be used to send partial data (such as headers, or partial html content) in blocking mode as well as sending data in the default non-blocking mode. attr_reader :response # the :flash is a little bit of a magic hash that sets and reads temporary cookies.