Module: Utusemi::Core::ActiveRecord::AssociationMethods

Defined in:
lib/utusemi/core.rb

Instance Method Summary collapse

Instance Method Details

#belongs_to(name, *args, &block) ⇒ Object



352
353
354
355
# File 'lib/utusemi/core.rb', line 352

def belongs_to(name, *args, &block)
  prepend_utusemi_association_reader_module(name)
  super
end

#has_many(name, *args, &block) ⇒ Object



362
363
364
365
# File 'lib/utusemi/core.rb', line 362

def has_many(name, *args, &block)
  prepend_utusemi_association_reader_module(name)
  super
end

#has_one(name, *args, &block) ⇒ Object



357
358
359
360
# File 'lib/utusemi/core.rb', line 357

def has_one(name, *args, &block)
  prepend_utusemi_association_reader_module(name)
  super
end