app/helpers/application_helper.rb
# Generates destination for pages menu snippets
Generates destination for pages menu snippets
Generates destination for pages menu snippets
def page_link_destination(p)
      if p.override_url
        link_destination = p.override_url
      elsif (p.go_to_first_child && !p.children.blank? && p.children.first)
        link_destination = get_railsgun_url(p.children.first.pretty_url)
      else
        link_destination = get_railsgun_url(p.pretty_url)
      end
      link_destination
    end
def page_link_destination ( p ) if p . override_url link_destination = p . override_url elsif ( p . go_to_first_child && ! p . children . blank? && p . children . first ) link_destination = get_railsgun_url ( p . children . first . pretty_url ) else link_destination = get_railsgun_url ( p . pretty_url ) end link_destination end
Generates destination for pages menu snippets
Generates destination for pages menu snippets
p
<not_specific>