Skip to content

Instantly share code, notes, and snippets.

@ktheory
Created December 6, 2011 22:27
Show Gist options
  • Save ktheory/1440328 to your computer and use it in GitHub Desktop.
Save ktheory/1440328 to your computer and use it in GitHub Desktop.
ActiveRecord::Base#to_yaml
def to_yaml( opts = {} )
YAML::quick_emit( self, opts ) do |out|
out.map( taguri, to_yaml_style ) do |map|
map.add( 'id', self.id )
end
end
ende
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment