aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/_welcome.html.erb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-12-07 15:20:02 +0100
committerXavier Noria <fxn@hashref.com>2012-12-07 15:20:56 +0100
commit0adcf6d90e787f2c953d2d58b875d1ff9ef71da8 (patch)
tree61dbf5ced7c94f30906aa8526a0a828b02fcd0f0 /guides/source/_welcome.html.erb
parent89ab303d8b78a73cb7d306a026f185986f44aa2a (diff)
downloadrails-0adcf6d90e787f2c953d2d58b875d1ff9ef71da8.tar.gz
rails-0adcf6d90e787f2c953d2d58b875d1ff9ef71da8.tar.bz2
rails-0adcf6d90e787f2c953d2d58b875d1ff9ef71da8.zip
let @version be always externally set in guides generation [fixes #8221]
Shelling out was there for authors convenience, but we are rather going to have the tag or SHA1 always in RAILS_VERSION and if the environment variable is blank, then just use "local" as a reminder that you are just working locally. The docs server has been updated to set the long SHA1 in RAILS_VERSION when generating edge guides.
Diffstat (limited to 'guides/source/_welcome.html.erb')
-rw-r--r--guides/source/_welcome.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/_welcome.html.erb b/guides/source/_welcome.html.erb
index 9d2e9c1d68..a50961a0c7 100644
--- a/guides/source/_welcome.html.erb
+++ b/guides/source/_welcome.html.erb
@@ -1,4 +1,4 @@
-<h2>Ruby on Rails Guides (<%= @version %>)</h2>
+<h2>Ruby on Rails Guides (<%= @edge ? @version[0, 7] : @version %>)</h2>
<% if @edge %>
<p>