Skip to content

Commit

Permalink
Initialize meta_title with app_name if not already set
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Mar 5, 2025
1 parent c52c608 commit b9d0dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ApplicationHelper
def meta_title
@meta_title
@meta_title ||= "#{app_name} | #{app_description}"
end

def meta_description
Expand Down

0 comments on commit b9d0dd5

Please sign in to comment.