On Oct 15, 2:42 am, Nate Wiger <[email protected]> wrote: > > Sequel uses methods instead of proxies for modifying associations: > > > game.add_game_player(GamePlayer.new(opts)) > > Looks good, I was just playing with this. Any opposition to a patch > to also accept a Hash and do the GamePlayer.new automatically in that > case? > > game.add_game_player(GamePlayer.new(opts)) > game.add_game_player(opts) # same thing > > Eg, > > game.add_game_player(:is_host => false, :timeout => 30)
I wouldn't have a problem with that. To be consistent, we should probably have something similar in remove_game_player, maybe something like: game.remove_game_player(1) # similar to game.remove_game_player(GamePlayer[1]) Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
