Module: ActiveRecordUuid::AssociationMethods

Defined in:
lib/active_record_uuid/extensions/association_methods.rb

Instance Method Summary collapse

Instance Method Details

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



13
14
15
16
# File 'lib/active_record_uuid/extensions/association_methods.rb', line 13

def belongs_to(name, options = {})
  options = uuid_assoc_options(:belongs_to, name, options)
  super
end

#has_and_belongs_to_many(name, options = {}, &extension) ⇒ Object



18
19
20
21
# File 'lib/active_record_uuid/extensions/association_methods.rb', line 18

def has_and_belongs_to_many(name, options = {}, &extension)
  options = uuid_assoc_options(:has_and_belongs_to_many, name, options)
  super
end

#has_many(name, options = {}, &extension) ⇒ Object



3
4
5
6
# File 'lib/active_record_uuid/extensions/association_methods.rb', line 3

def has_many(name, options = {}, &extension)
  options = uuid_assoc_options(:has_many, name, options)
  super
end

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



8
9
10
11
# File 'lib/active_record_uuid/extensions/association_methods.rb', line 8

def has_one(name, options = {})
  options = uuid_assoc_options(:has_one, name, options)
  super
end