Created
December 16, 2013 16:21
-
-
Save dankmitchell/7989772 to your computer and use it in GitHub Desktop.
spree.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spree.config do |config| | |
config.use_s3 = true | |
config.s3_bucket = "lovepleasure-production" | |
config.s3_access_key = "AKIAIBMNZZWTZKQYNXHQ" | |
config.s3_secret = "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" | |
config.attachment_url = ":s3_eu_url" | |
config.s3_host_alias = "s3-eu-west-1.amazonaws.com" | |
config.s3_protocol = "https" | |
config.currency = "GBP" | |
config.override_actionmailer_config = true | |
config.mails_from = "no-reply@lovepleasure.co.uk" | |
config.max_level_in_taxons_menu = 2 | |
country = Spree::Country.find_by_name('United Kingdom') | |
config.default_country_id = country.id if country.present? | |
config.address_requires_state = false | |
config.products_per_page = 16 | |
config.track_inventory_levels = true | |
config.searcher_class = Lovepleasure::Search | |
end | |
Paperclip.interpolates(:s3_eu_url) do |attachment, style| | |
"#{attachment.s3_protocol}://#{Spree::Config[:s3_host_alias]}/#{attachment.bucket_name}/#{attachment.path(style).gsub(%r{^/}, "")}" | |
end | |
Spree.user_class = "Spree::User" | |
Spree::PrintInvoice.config do |config| | |
config.print_invoice_logo_path = "store/logoPDF.jpg" | |
config.print_buttons = "invoice,packaging_slip" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment