Skip to content

Instantly share code, notes, and snippets.

@fermion
Created July 15, 2011 13:44
Show Gist options
  • 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