Module: M2MFastInsert::HasAndBelongsToManyOverride

Extended by:
ActiveSupport::Concern
Defined in:
lib/m2m_fast_insert/has_and_belongs_to_many_override.rb

Instance Method Summary collapse

Instance Method Details

#has_and_belongs_to_many_with_fast_inserts(name, options = {}) ⇒ Object

Rig the original habtm to call our method definition

name - Plural name of the model we’re associating with options - see ActiveRecord docs



16
17
18
19
# File 'lib/m2m_fast_insert/has_and_belongs_to_many_override.rb', line 16

def has_and_belongs_to_many_with_fast_inserts(name, options = {})
  has_and_belongs_to_many_without_fast_inserts(name, options)
  define_fast_methods_for_model(name, options)
end