Skip to content

Instantly share code, notes, and snippets.

@briandoll
Created August 26, 2009 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save briandoll/175788 to your computer and use it in GitHub Desktop.
Save briandoll/175788 to your computer and use it in GitHub Desktop.
module RailsNamingConventions
def file_name_to_class_name(file_name)
file_name.split(".rb")[0].classify
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment