Skip to content

Instantly share code, notes, and snippets.

@inem
Created August 22, 2009 03:20
Show Gist options
  • Select an option

  • Save inem/172614 to your computer and use it in GitHub Desktop.

Select an option

Save inem/172614 to your computer and use it in GitHub Desktop.
-@protein_hits
:methods
.label
.spot
.descrption
.comment_text
:include
-comments
-taggings
:methods
.created_at
-tag
:only
.name
.background
.foreground
-tagger
:only
.login
@protein_hits.to_json(:methods =>
[:label, :spot, :description, :comment_text],
:include => {
:comments => {
:only => [
:comment,
:id,
:commenter_id],
:methods => [
:commenter_name,
:date]},
:taggings => {
:methods => [
:created_at],
:include => {
:tag => {
:only => [
:name,
:background,
:foreground]},
:tagger => {
:only => :login}}}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment