Flowdock
method

define_extensions

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: CollectionAssociation
define_extensions(model, name, &block) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/builder/collection_association.rb, line 22
    def self.define_extensions(model, name, &block)
      if block_given?
        extension_module_name = "#{name.to_s.camelize}AssociationExtension"
        extension = Module.new(&block)
        model.const_set(extension_module_name, extension)
      end
    end
Register or log in to add new notes.