fix and test options accessor for requirement loading
[has_many_polymorphs.git] / lib / has_many_polymorphs / configuration.rb
blobeab76ad884c92aa6849f9868f33f5f5028ddf790
2 =begin rdoc
3 Access the <tt>has_many_polymorphs_options</tt> hash in your Rails::Initializer.run#after_initialize block if you need to modify the behavior of Rails::Initializer::HasManyPolymorphsAutoload.
4 =end
6 class Rails::Configuration
8   def has_many_polymorphs_options
9     ::HasManyPolymorphs.options
10   end
11   
12   def has_many_polymorphs_options=(hash)
13     ::HasManyPolymorphs.options = HashWithIndifferentAccess.new(hash)
14   end
15   
16 end