lib/ripple/railtie.rb in ripple-0.8.2 vs lib/ripple/railtie.rb in ripple-0.8.3

- old
+ new

@@ -16,9 +16,11 @@ module Ripple # Railtie for automatic initialization of the Ripple framework # during Rails initialization. class Railtie < Rails::Railtie initializer "ripple.configure_rails_initialization" do - Ripple.load_configuration Rails.root.join('config', 'ripple.yml'), [Rails.env] + if File.exist?(Rails.root + "config/ripple.yml") + Ripple.load_configuration Rails.root.join('config', 'ripple.yml'), [Rails.env] + end end end end