lib/chillout/railtie.rb in chillout-0.5.1 vs lib/chillout/railtie.rb in chillout-0.5.2
- old
+ new
@@ -3,11 +3,12 @@
module Chillout
class Railtie < Rails::Railtie
config.chillout = ActiveSupport::OrderedOptions.new
initializer "chillout.creations_listener_initialization" do |rails_app|
chillout_config = rails_app.config.chillout
- return if chillout_config.empty?
- RailsInitializer.new(rails_app, chillout_config, Rails.logger).start
+ if !chillout_config.empty?
+ RailsInitializer.new(rails_app, chillout_config, Rails.logger).start
+ end
end
rake_tasks do
load "chillout/tasks.rb"
end