Skip to content

Instantly share code, notes, and snippets.

@jayniz
Created Feb 13, 2012
Embed
What would you like to do?
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