From a8e1e301cd61106f26083b0e46fe18ce2a0328f6 Mon Sep 17 00:00:00 2001 From: evanweaver Date: Fri, 18 Jan 2008 04:07:40 +0000 Subject: [PATCH] how'd that get in there git-svn-id: svn://rubyforge.org/var/svn/fauna/has_many_polymorphs/trunk@1377 c1ad287d-65d5-445d-b84c-e64f8492f1e6 --- lib/has_many_polymorphs/configuration.rb | 20 +++++++++++--------- test/integration/app/config/environment.rb | 2 -- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/has_many_polymorphs/configuration.rb b/lib/has_many_polymorphs/configuration.rb index eab76ad..9de2161 100644 --- a/lib/has_many_polymorphs/configuration.rb +++ b/lib/has_many_polymorphs/configuration.rb @@ -3,15 +3,17 @@ Access the has_many_polymorphs_options hash in your Rails::Initializer.run#after_initialize block if you need to modify the behavior of Rails::Initializer::HasManyPolymorphsAutoload. =end -class Rails::Configuration +module Rails #:nodoc: + class Configuration - def has_many_polymorphs_options - ::HasManyPolymorphs.options - end - - def has_many_polymorphs_options=(hash) - ::HasManyPolymorphs.options = HashWithIndifferentAccess.new(hash) - end - + def has_many_polymorphs_options + ::HasManyPolymorphs.options + end + + def has_many_polymorphs_options=(hash) + ::HasManyPolymorphs.options = HashWithIndifferentAccess.new(hash) + end + + end end diff --git a/test/integration/app/config/environment.rb b/test/integration/app/config/environment.rb index 12110b2..39f34de 100644 --- a/test/integration/app/config/environment.rb +++ b/test/integration/app/config/environment.rb @@ -17,5 +17,3 @@ end # Dependencies.log_activity = true ENV['RAILS_ASSET_ID'] = Time.now.to_i.to_s - -require 'tagging_extensions' -- 2.11.4.GIT