public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
memoize the raw_post body after its called once
ezmobius (author)
Sun Mar 23 15:42:38 -0700 2008
commit  76a0dde86f08401ff6dcbda628e5cdee57d103ee
tree    df0dcca1e65c13dce35cd50da9602cf3ef473810
parent  22436fe4056bf4ab7e293d0f1a66cff54538f442
...
163
164
165
166
 
167
168
169
...
163
164
165
 
166
167
168
169
0
@@ -163,7 +163,7 @@
0
     # String:: The raw post.
0
     def raw_post
0
       @body.rewind if @body.respond_to?(:rewind)
0
- @ @body.read
0
+ @raw_post ||= @body.read
0
     end
0
     
0
     # ==== Returns

Comments

    No one has commented yet.