Permalink
Browse files

Add Spree.config

Allows people to do things like this:

  Spree.config do |config|
    config.site_name = "One awesome Spree site"
  end

Rather than resorting to Rails.application.config.spree.preferences or
Spree::Config.<method>= calls.
  • Loading branch information...
radar committed Dec 5, 2011
1 parent 8191c25 commit 5590fb3f94da4a66fae510458a55130ad8eeea7a
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/spree.rb
View
@@ -4,3 +4,9 @@
require 'spree_dash'
require 'spree_promo'
require 'spree_sample'
module Spree
def self.config(&block)
yield(Spree::Config)
end
end

0 comments on commit 5590fb3

Please sign in to comment.