Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

alyssais/as_inverse_of

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

From the Rails documentation:

inverse_of:
Specifies the name of the belongs_to association on the associated object that is the inverse of this has_many association. Does not work in combination with :through or :as options. See ActiveRecord::Associations::ClassMethods's overview on Bi-directional associations for more detail.

This repository demonstrates that inverse_of: does work in combination with as:.

See test/has_many_as_test.rb.

About

Demonstrates an inaccuracy in the Rails docs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages