Sha256: 111383268091de477de4d79a86a2fb9e700a291c5e3090c18f1fd8c44bd8df9c
Contents?: true
Size: 387 Bytes
Versions: 24
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true module BlogHelper # The base URL for this request, calculated by looking up the URL for the main # blog index page. def blog_base_url url_for(controller: "/articles", action: "index").gsub(%r{/$}, "") end # Find the blog whose base_url matches the current location. def this_blog @this_blog ||= Blog.find_blog(blog_base_url) end end
Version data entries
24 entries across 24 versions & 2 rubygems