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
automatthew (committer)
Tue Jul 01 09:44:05 -0700 2008
commit  8a731e3fe9597093c4beee6f5815d72a2ed5fe91
tree    fc4e3c1aa4978abed7c527a11fcab2b1b1211fdc
parent  621733ad4ddc3fed1d5c861b537928363500eafe
...
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.