Module: ActiveRecordAssociationsModuleName::AssociationClassMethodExtension
- Defined in:
- lib/active_record_associations_module_name.rb
Instance Method Summary collapse
- #belongs_to(name, scope = nil, **options) ⇒ Object
- #has_and_belongs_to_many(name, scope = nil, **options) ⇒ Object
- #has_many(name, scope = nil, **options) ⇒ Object
- #has_one(name, scope = nil, **options) ⇒ Object
Instance Method Details
#belongs_to(name, scope = nil, **options) ⇒ Object
20 21 22 23 |
# File 'lib/active_record_associations_module_name.rb', line 20 def belongs_to(name, scope = nil, **) = process_module_name_option(name, ) super(name, scope, **) end |
#has_and_belongs_to_many(name, scope = nil, **options) ⇒ Object
35 36 37 38 |
# File 'lib/active_record_associations_module_name.rb', line 35 def has_and_belongs_to_many(name, scope = nil, **) = process_module_name_option(name, ) super(name, scope, **) end |
#has_many(name, scope = nil, **options) ⇒ Object
30 31 32 33 |
# File 'lib/active_record_associations_module_name.rb', line 30 def has_many(name, scope = nil, **) = process_module_name_option(name, ) super(name, scope, **) end |
#has_one(name, scope = nil, **options) ⇒ Object
25 26 27 28 |
# File 'lib/active_record_associations_module_name.rb', line 25 def has_one(name, scope = nil, **) = process_module_name_option(name, ) super(name, scope, **) end |