Class: BardStatic::LinkToHelper::LinkToNav

Inherits:
LinkToCurrent show all
Defined in:
app/helpers/bard_static/link_to_helper.rb

Instance Attribute Summary

Attributes inherited from LinkToCurrent

#current_path

Attributes inherited from LinkTo

#context, #html_options, #name, #options

Instance Method Summary collapse

Methods inherited from LinkToCurrent

#add_class, #render

Methods inherited from LinkTo

#initialize, render, #render, #url

Constructor Details

This class inherits a constructor from BardStatic::LinkToHelper::LinkTo

Instance Method Details

#current_conditionObject



85
86
87
# File 'app/helpers/bard_static/link_to_helper.rb', line 85

def current_condition
  super || url.starts_with?(current_path)
end