Perfect, yes when I saw Phrogz answer that made sense given the other
dataset methods.

One follow-up: Is there any reason why this is not supported?

   game.game_players_dataset[17]

There's an explicit error thrown, and an explicit check in the class
for this situation:

    # Returns the first record matching the conditions. Examples:
    #
    #   ds[:id=>1] => {:id=1}
    def [](*conditions)
      raise(Error, ARRAY_ACCESS_ERROR_MSG) if (conditions.length == 1
and conditions.first.is_a?(Integer)) or conditions.length == 0
      first(*conditions)
    end

Which is odd to me only because these work and are supported:

    Game[4]
    GamePlayer[17]

Thoughts?  Seems like these API's should act similarly.

Thanks,
Nate

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to