Created
February 13, 2012 10:59
-
-
Save jayniz/1816051 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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