Tuesday, April 7, 2009

wrt magic labels in fixtures

IF you specify an id for a fixture THEN the magical labeling doesn't work:

# conversations.yml
woodchuck_capabilities:
  id: 1
...

# channels.yml
woodchuck_channel:
  conversation: :woodchuck_capabilities   # <---- NOPE
  conversation_id: 1                      # <---- YEP

I knew that the magic couldn't span databases, but didn't know
that specifying an id disabled that behavior...

--
Love,
Fritz

No comments:

Post a Comment