cirandas.net

ref: master

plugins/products/features/support/paths.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
module NavigationHelpers
  module ProductsPlugin
    def path_to page_name
      case page_name
      when /^(.*)'s products page$/
        '/catalog/%s' % $1
      else
        super
      end
    end
  end

  prepend ProductsPlugin
end