Created
September 15, 2010 00:49
-
-
Save danielpietzsch/580061 to your computer and use it in GitHub Desktop.
Put this in environment.rb and use the constant to display the version number wherever you like
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_VERSION = `git describe --always`.strip unless defined? APP_VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course, this only works if you use git tags as your version system