Permalink
Browse files

make sure delayed job is loaded

  • Loading branch information...
1 parent c876032 commit af5f279bff8f3bdc0e81f63e2a94768951af4fd0 @jzw committed Jul 19, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/import_products.rb
View
@@ -1,5 +1,6 @@
require 'spree_core'
require 'import_products_hooks'
+require 'delayed_job'
module ImportProducts
class Engine < Rails::Engine
@@ -10,9 +11,9 @@ def self.activate
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.env.production? ? require(c) : load(c)
end
-
+
UserMailer.send(:include, ImportProducts::UserMailerExt)
-
+
end
config.to_prepare &method(:activate).to_proc

0 comments on commit af5f279

Please sign in to comment.