Created
September 8, 2010 13:13
-
-
Save simi/570113 to your computer and use it in GitHub Desktop.
This file contains 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
def parent_keys | |
x = [] | |
if not parent.nil? | |
x << parent.parent_keys | |
end | |
x.flatten + self.key.to_a | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment