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
The fix for anonymous broke non-anonymous. Maybe now they can get along.
dyoder (author)
Tue Jul 01 09:41:58 -0700 2008
commit  f9f6f63a210b6c766213c470e4c725698c3e2b61
tree    fa8bd3fe606f8a767a2b1e6400b978a422d223c8
parent  e5804c2e011b637f7ee60581f82643b4c964789f
...
12
13
14
15
 
16
17
18
...
20
21
22
23
 
24
25
26
...
12
13
14
 
15
16
17
18
...
20
21
22
 
23
24
25
26
0
@@ -12,7 +12,7 @@ module Waves
0
       def initialize( options )
0
         @name = name = options[:name] ; @pattern = pattern = Pattern.new( options )
0
         @constraints = Constraints.new( options ) ; @descriptors = Descriptors.new( options )
0
- @block = options[:block]
0
+ @block = block = options[:block]
0
         if rname = options[ :resource ]
0
           @resource = resource = Waves.application[:resources][ rname ]
0
         else
0
@@ -20,7 +20,7 @@ module Waves
0
           @resource = Waves::Resources::Proxy
0
         end
0
         if name
0
- resource.instance_eval { define_method( name, &@block ) } if @block
0
+ resource.instance_eval { define_method( name, &block ) } if block
0
           resource::Paths.instance_eval { define_method( name ) { |*args| generate( options[ :path ], args ) } }
0
         end
0
       end

Comments

    No one has commented yet.