Sha256: b3cf8614aa079278960e44987d50aec8a768e2fe6a4eb0a55bc7c3ebdd4534af
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
# typed: false module Titleist # Helper methods in ActionView for rendering the title. module Helper extend T::Sig # Render the full title as a `<title>` tag. # # @return [String] def title_tag content_tag :title, title_text.to_s end private # @private # @return [String] def title_text current_page?(root_path) ? title.app : title end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
titleist-1.0.0 | lib/titleist/helper.rb |