Sha256: 69296cf6e30016fcd9d170f9a4ac9dc74e3346abae58d04f2f6d58cead87f6fe

Contents?: true

Size: 634 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 app/helpers/application_helper.rb
spree-0.9.4 app/helpers/application_helper.rb
spree-0.9.3 app/helpers/application_helper.rb
spree-0.9.2 app/helpers/application_helper.rb
spree-0.9.1 app/helpers/application_helper.rb
spree-0.9.0 app/helpers/application_helper.rb