Skip to content

Commit

Permalink
add git commit to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Jan 11, 2025
1 parent b905e76 commit 155cc43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<footer class="footer">
<div class="container">
<p>&copy; <%= Date.today.year %>. <%= Setting.app_owner %>. All rights reserved.</p>
<p>&copy; <%= Date.today.year %>. <%= Setting.app_owner %>. All rights reserved. <%= Rails.application.config.git_commit_hash %></p>
</div>
</footer>

Expand Down
1 change: 1 addition & 0 deletions config/initializers/git.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rails.application.config.git_commit_hash = `git rev-parse --short HEAD`.chomp

0 comments on commit 155cc43

Please sign in to comment.