Sha256: ba106a9d4e79127c004ec1301d1f9a9308200c4200092a97021edd7cb285f15d

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 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

class Rails::Configuration

  def has_many_polymorphs_options
    ::HasManyPolymorphs.options
  end
  
  def has_many_polymorphs_options=(hash)
    ::HasManyPolymorphs.options = HashWithIndifferentAccess.new(hash)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_many_polymorphs-2.12 lib/has_many_polymorphs/configuration.rb