Changeset 608
- Timestamp:
- 09/10/07 19:07:55 (1 year ago)
- Files:
-
- trunk/lib/merb/exceptions.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/exceptions.rb
r607 r608 67 67 68 68 def _layout 69 ::Merb::Server.config[:exception_layout] || super69 ::Merb::Server.config[:exception_layout] || 'application' 70 70 end 71 71 … … 111 111 def status; self.class::STATUS; end 112 112 def body; @_body; end 113 114 # catch any method calls that the controller responds to 115 # and delegate them back to the controller. 116 def method_missing(sym, *args, &blk) 117 if @controller.respond_to? sym 118 @controller.send(sym, *args, &blk) 119 else 120 super 121 end 122 end 123 124 # pass requests onto controller 125 def respond_to?(sym) 126 super || @controller.respond_to?(sym) 127 end 113 128 end 114 129
