Created
July 3, 2013 17:44
-
-
Save celesteking/5920911 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
case override | |
when Array, String | |
hierarchy.insert(0, override) | |
when Hash | |
hierarchy.insert(override['position'].to_i, override['datasource']) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment