Skip to content

Instantly share code, notes, and snippets.

@fermion
Created July 15, 2011 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermion/1084714 to your computer and use it in GitHub Desktop.
Save fermion/1084714 to your computer and use it in GitHub Desktop.
def layouts
PageTemplate::LAYOUTS.inject({}) do |hash, layout|
hash.merge(layout.to_s.sub('_', ' ').capitalize] = layout)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment