lib/config_default/init.rb in config_default-0.2.1 vs lib/config_default/init.rb in config_default-0.2.2

- old
+ new

@@ -2,12 +2,10 @@ module ConfigDefault::Init extend self def init_rails_monkey_patch! - return unless Object.const_defined?("Rails") - return unless Object.const_defined?("Rails::Application") - return unless Object.const_defined?("Rails::Application::Configuration") + return unless Object.const_defined?(:Rails) Rails::Application.prepend(ConfigDefault::RailsApplicationExtension) Rails::Application::Configuration.prepend(ConfigDefault::RailsApplicationConfigurationExtension) end end