Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 457 Bytes

2019-08-02_rails_reflect_on_all_associations.md

File metadata and controls

14 lines (8 loc) · 457 Bytes

Reflect On All Associations (Rails)

8/2/2019

Ever need to find out associations while inside a rails console? Rails has a great method called reflect_on_all_associatons that returns an array of associations on your object.

User.reflect_on_all_associations

Relevent Link: Rails API Docs

Tags: Rails, Ruby, general