]> git.openstreetmap.org Git - rails.git/commitdiff
Remove default argument values of OpenGraph tag helper
authorAnton Khorev <tony29@yandex.ru>
Wed, 7 Aug 2024 15:55:08 +0000 (18:55 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 7 Aug 2024 15:55:08 +0000 (18:55 +0300)
app/helpers/open_graph_helper.rb

index ad24c73b2fb3c2115d3b0a19b4c3809f18cd0638..a2c429ed7ee007dcb7007eb50d43d401cf6f903b 100644 (file)
@@ -1,7 +1,7 @@
 module OpenGraphHelper
   require "addressable/uri"
 
-  def opengraph_tags(title = nil, og_image = nil, og_image_alt = nil)
+  def opengraph_tags(title, og_image, og_image_alt)
     tags = {
       "og:site_name" => t("layouts.project_name.title"),
       "og:title" => title || t("layouts.project_name.title"),