Sha256: 31b169cc7d12465c2eb81a017de7ad84061ae6890c7d9a5f06dda114a37f22e7

Contents?: true

Size: 217 Bytes

Versions: 13

Compression:

Stored size: 217 Bytes

Contents

module Trestle
  module NavigationHelper
    def current_navigation_item?(item)
      return true if current_page?(item.path)
      return true if defined?(admin) && admin == item.admin

      false
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
trestle-0.8.13 app/helpers/trestle/navigation_helper.rb
trestle-0.8.12 app/helpers/trestle/navigation_helper.rb
trestle-0.8.11 app/helpers/trestle/navigation_helper.rb
trestle-0.8.10 app/helpers/trestle/navigation_helper.rb
trestle-0.8.9 app/helpers/trestle/navigation_helper.rb
trestle-0.8.8 app/helpers/trestle/navigation_helper.rb
trestle-0.8.7 app/helpers/trestle/navigation_helper.rb
trestle-0.8.6 app/helpers/trestle/navigation_helper.rb
trestle-0.8.5 app/helpers/trestle/navigation_helper.rb
trestle-0.8.4 app/helpers/trestle/navigation_helper.rb
trestle-0.8.3 app/helpers/trestle/navigation_helper.rb
trestle-0.8.2 app/helpers/trestle/navigation_helper.rb
trestle-0.8.0 app/helpers/trestle/navigation_helper.rb