Sha256: f6cd57787e4f72b5a66de41cdc83188b1521f477adf24bd215584fbfa8499ee4

Contents?: true

Size: 246 Bytes

Versions: 1

Compression:

Stored size: 246 Bytes

Contents

module Spree::RetailersHelper
  
  def state_nav_helper(retailers=[])
    states = retailers.collect(&:state).uniq
    return "" if states.empty?
    states.collect{|state| link_to(state, "##{state.downcase}") }.join(" | ").html_safe 
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_retailers-1.0.0.0 app/helpers/spree/retailers_helper.rb