engine/spec/dummy/config/boot.rb
Mario Visic 9a1a0f016f Merge branch 'master' into rails_3_1
Conflicts:
	app/models/content_type.rb
	config/boot.rb
2011-12-15 22:29:07 +08:00

21 lines
609 B
Ruby

require 'rubygems'
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
# Need to explicitly use syck for yaml. This fixes a problem with the current
# delayed job parsing of YAML
#
# 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)
if File.exist?(gemfile)
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
end
$:.unshift File.expand_path('../../../../lib', __FILE__)