Sha256: 07dd39008d4fbfb4f02d4fd7ed40256383f0340588831604cc4a6d3ae9c67219

Contents?: true

Size: 362 Bytes

Versions: 9

Compression:

Stored size: 362 Bytes

Contents

# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  
  # helper to determine if its appropriate to show the store menu
  def store_menu?
    return true unless %w{thank_you}.include? @current_action
    false
  end
  
  def flag_image(code)
    "#{code.to_s.split("-").last.downcase}.png"
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree-0.11.4 app/helpers/application_helper.rb
spree-0.11.3 app/helpers/application_helper.rb
spree-0.11.2 app/helpers/application_helper.rb
spree-0.11.1 app/helpers/application_helper.rb
spree-0.11.0 app/helpers/application_helper.rb
spree-0.10.2 app/helpers/application_helper.rb
spree-0.10.1 app/helpers/application_helper.rb
spree-0.10.0 app/helpers/application_helper.rb
spree-0.10.0.beta app/helpers/application_helper.rb