Skip to content

Instantly share code, notes, and snippets.

@benhutton
Created March 1, 2011 21:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhutton/849951 to your computer and use it in GitHub Desktop.
Save benhutton/849951 to your computer and use it in GitHub Desktop.
How to fix spree's default engine
module SpreeSite
class Engine < Rails::Engine
def self.activate
# Add your custom site logic here
end
paths.config.routes = "lib/spree_blank.rb"
paths.config.initializers = "lib/spree_blank.rb"
config.to_prepare &method(:activate).to_proc
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment