Module: Para::NavigationHelper

Defined in:
app/helpers/para/navigation_helper.rb

Instance Method Summary collapse

Instance Method Details

#component_section_active?(component_section) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
6
# File 'app/helpers/para/navigation_helper.rb', line 3

def component_section_active?(component_section)
  (@component_section && @component_section == component_section) ||
  (@component && @component.component_section_id == component_section.id)
end