Module: M2MFastInsert::HasAndBelongsToManyOverride

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(name, options = {}) ⇒ Object

Decorate the original habtm to call our method definition

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



7
8
9
10
# File 'lib/m2m_fast_insert/has_and_belongs_to_many_override.rb', line 7

def has_and_belongs_to_many(name, options = {})
  super
  define_fast_methods_for_model(name, options)
end