Skip to content

Instantly share code, notes, and snippets.

@jballanc
Created January 18, 2010 06:46
Show Gist options
  • Save jballanc/279837 to your computer and use it in GitHub Desktop.
Save jballanc/279837 to your computer and use it in GitHub Desktop.
def parse_splat
split_splat = params[:splat][0].split('/')
[ split_splat.pop,
split_splat,
ITEM_LEVELS[split_splat.length] ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment