Skip to content

Instantly share code, notes, and snippets.

@robe5
Created May 26, 2009 07:16
Show Gist options
  • Save robe5/117935 to your computer and use it in GitHub Desktop.
Save robe5/117935 to your computer and use it in GitHub Desktop.
# Usado en rails (layout(layout, conditions={})) para pasar un hash a una variable y cada value como un array de strings:
conditions.each {|k, v| conditions[k] = Array(v).map {|a| a.to_s} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment