Sha256: 20b7b88b8c560b4414f513ad1a7b15e9c8e55de1878979b50c47c0230b5118e7

Contents?: true

Size: 636 Bytes

Versions: 7

Compression:

Stored size: 636 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

  # Renders all the extension partials that may have been specified in the extensions
  def render_extra_partials(f)
    @extension_partials.inject("") do |extras, partial|
      extras += render :partial => partial, :locals => {:f => f}
    end
  end
  
  def flag_image(code)
    "#{code.to_s.split("-").last.downcase}.png"
  end                      

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 app/helpers/application_helper.rb
spree-0.8.4 app/helpers/application_helper.rb
spree-0.8.5 app/helpers/application_helper.rb
spree-0.8.0 app/helpers/application_helper.rb
spree-0.8.1 app/helpers/application_helper.rb
spree-0.8.2 app/helpers/application_helper.rb
spree-0.8.3 app/helpers/application_helper.rb