Skip to content

Instantly share code, notes, and snippets.

@jayniz
Created February 13, 2012 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayniz/1816051 to your computer and use it in GitHub Desktop.
Save jayniz/1816051 to your computer and use it in GitHub Desktop.
module Girl
def self.route_conditions
{gender: :female}
end
end
module Movie
def self.route_conditions
{ type: 'Movie' }
end
module Route
def female_likers
self.in_e(:likes).in_v(Girl)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment