Changeset 200

Show
Ignore:
Timestamp:
09/17/2007 16:14:53 (15 months ago)
Author:
zimbatm
Message:

Fix for bug #137, patch by msg. Works for me too :)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/camping.rb

    r191 r200  
    88p end;def errors_for o;ul.errors{o.errors.each_full{|x|li x}}if o.errors.any?end 
    99end;module Base;include Helpers;attr_accessor:input,:cookies,:env,:headers,:body, 
    10 :status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new {},self 
     10:status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new({},self) 
    1111s=m.capture{send(*a,&b)};s=m.capture{send(:layout){s}} if /^_/!~a[0].to_s and m. 
    1212respond_to?:layout;s end;def r s,b,h={};@status=s;@headers.merge!h;@body=b end