Sha256: e7949893120c02fade9ac420ac9beb2eeabe8b21c64fb2cf8efffc11fafbc870

Contents?: true

Size: 480 Bytes

Versions: 21

Compression:

Stored size: 480 Bytes

Contents

=begin rdoc
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.
=end

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
    
  end  
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
radiant-tags-extension-1.6.10 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
johnsbrn-has_many_polymorphs-2.13.1 lib/has_many_polymorphs/configuration.rb
johnsbrn-has_many_polymorphs-2.13.3 lib/has_many_polymorphs/configuration.rb
johnsbrn-has_many_polymorphs-2.13.4 lib/has_many_polymorphs/configuration.rb
johnsbrn-has_many_polymorphs-2.13 lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.9 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.8 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.7 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.6 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.5 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.4 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.3 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.2 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.1 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.6.0 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
radiant-tags-extension-1.5.1 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
has_many_polymorphs-2.13 lib/has_many_polymorphs/configuration.rb
has_many_polymorphs-2.2 lib/has_many_polymorphs/configuration.rb
spree-0.6.0 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb
spree-0.7.1 vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/configuration.rb