GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Minor refactoring: removed not_found from base dispatcher
lawrencepit (author)
Mon Apr 21 01:40:29 -0700 2008
commit  c21cdf89d160c67393697ec6b6e537906cc71606
tree    1f48106a56726692ff806e0dcc2670089b799edd
parent  3d5932dd367c0149061ccdd2878d9221f6706750
...
45
46
47
48
49
50
51
52
53
54
...
45
46
47
 
 
 
 
48
49
50
0
@@ -45,10 +45,6 @@ module Waves
0
         Waves::Application.instance.mapping.threaded?( env )
0
       end
0
 
0
- def not_found(request)
0
- raise Waves::Dispatchers::NotFoundError.new( request.url + ' not found.')
0
- end
0
-
0
     end
0
 
0
   end  
...
39
40
41
42
 
43
44
45
...
39
40
41
 
42
43
44
45
0
@@ -39,7 +39,7 @@ module Waves
0
            ResponseProxy.new(request).instance_exec(*args,&block)
0
           end
0
 
0
- not_found(request) unless mapping[:action]
0
+ request.not_found unless mapping[:action]
0
       
0
           block, args = mapping[:action]
0
           response.write( ResponseProxy.new(request).instance_exec(*args, &block) )

Comments

    No one has commented yet.