spec/dummy/config/boot.rb in locomotive_cms-2.5.5 vs spec/dummy/config/boot.rb in locomotive_cms-2.5.6.rc1
- old
+ new
@@ -7,10 +7,10 @@
# FIXME: I don't expect end users to have to modify their config/boot.rb for an
# app using the locomotiveCMS gem. Perhaps we can remove this when a newer
# delayed job version is released?
#
require 'yaml'
-YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE)
+YAML::ENGINE.yamler = 'syck' if defined?(Delayed::Worker)
if File.exist?(gemfile)
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup