move checks and links in sidebars

This commit is contained in:
Rafael Schouten
2014-09-26 17:57:45 +10:00
parent e480d3a135
commit dee869a273
6 changed files with 37 additions and 30 deletions

View File

@@ -11,11 +11,16 @@ require 'spree/product_filters'
Spree.config do |config|
config.shipping_instructions = true
config.checkout_zone = 'Australia'
config.checkout_zone = ENV["CHECKOUT_ZONE"]
config.address_requires_state = true
# 12 should be Australia. Hardcoded for CI (Jenkins), where countries are not pre-loaded.
config.default_country_id = 12
if Rails.env.test? or Rails.env.development?
config.default_country_id = 12
else
country = Spree::Country.find_by_name(ENV["DEFAULT_COUNTRY"])
config.default_country_id = country.id if country.present?
end
# -- spree_paypal_express
# Auto-capture payments. Without this option, payments must be manually captured in the paypal interface.
@@ -23,11 +28,6 @@ Spree.config do |config|
#config.override_actionmailer_config = false
end
# TODO Work out why this is necessary
# Seems like classes within OFN module become 'uninitialized' when server reloads
# unless the empty module is explicity 'registered' here. Something to do with autoloading?
module OpenFoodNetwork
end
# Add calculators category for enterprise fees
module Spree
@@ -43,7 +43,7 @@ module Spree
end
# Forcing spree to always allow SSL connections
# Since we are using config.force_ssl = true
# Since we are using config.force_ssl = true
# Without this we get a redirect loop: see https://groups.google.com/forum/#!topic/spree-user/NwpqGxJ4klk
SslRequirement.module_eval do
protected