Skip to content
This repository was archived by the owner on Apr 2, 2022. It is now read-only.

Commit 65559a4

Browse files
author
Scott K
committed
Show version as meta tag and version bump to 1.0.1
1 parent d7ae39c commit 65559a4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/controllers/assets_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ def authenticate
3434
end
3535

3636
def index
37-
cookies['APP-VERSION'] = VERSION
37+
@version = VERSION
3838
end
3939
end

app/views/assets/index.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<%= stylesheet_link_tag "application", :media => "all" %>
66
<%= csrf_meta_tags %>
77
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
8+
<meta name="app_version" content="<%= @version %>">
89

910
<script>
1011
<% if @user %>

config/initializers/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.0.0"
1+
VERSION = "1.0.1"

0 commit comments

Comments
 (0)