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
attributes.to_hash in Sequel controller helpers
automatthew (author)
Fri Sep 05 14:48:54 -0700 2008
commit  4d07bfbe401a1551d53c3b35c71ba5b59799133f
tree    62b436141f8058ae5cddc5ba8a52524ec785c2a7
parent  2c07d4b3292787b99eaae8c76932f44b69686c08
...
72
73
74
75
 
76
77
78
...
81
82
83
84
 
85
86
87
...
72
73
74
 
75
76
77
78
...
81
82
83
 
84
85
86
87
0
@@ -72,7 +72,7 @@ module Waves
0
           end
0
           
0
           def create
0
- model.create( attributes )
0
+ model.create( attributes.to_hash )
0
           end
0
           
0
           def delete( name )
0
@@ -81,7 +81,7 @@ module Waves
0
           
0
           def update( name )
0
             instance = find( name )
0
- instance.update_with_params( attributes )
0
+ instance.update_with_params( attributes.to_hash )
0
             instance
0
           end
0
         end

Comments

    No one has commented yet.