Skip to content

Instantly share code, notes, and snippets.

@kamal
Created February 11, 2009 10:28
Show Gist options
  • Save kamal/61948 to your computer and use it in GitHub Desktop.
Save kamal/61948 to your computer and use it in GitHub Desktop.
authorization Mash.new unless attribute?("authorization")
authorization[:sudo] = Mash.new unless authorization.has_key?("sudo")
authorization[:sudo][:users] = ["foo", "bar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment