Created
April 23, 2010 15:01
-
-
Save gramos/376622 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Primer idea | |
class Transcription < ActiveResource::Base | |
self.site = TRANSCRIPTIONS_CONFIG['site_url'] | |
self.element_name = "transcription" | |
# Hacemos un módulo que haga toda la magia por detrás | |
# es fácil de hacer. | |
:has_one => :result | |
end | |
# Y a otra idea es que hagamos que el XML de transcription | |
retorne las relaciones y arme todo desde ahí (creo que esta vía es | |
complicada) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment