Module: Workarea::Storefront::HavenBlogHelper

Defined in:
app/helpers/workarea/storefront/haven_blog_helper.rb

Instance Method Summary collapse

Instance Method Details

#blog_tag_selected(tag) ⇒ Object



4
5
6
7
8
9
# File 'app/helpers/workarea/storefront/haven_blog_helper.rb', line 4

def blog_tag_selected(tag)
  uri = URI(request.original_url)
  return false unless uri.path.include?("tagged")

  uri.path.split("/").last == tag[:name]
end