Just released a new gem for Rails called “is_association?” https://rubygems.org/gems/is_association

The gem patches ActiveRecord::Base to expose a method is_association? The method will return true for associations like has_one, has_many and belongs_to while returning false for regular attributes on the table.

Category: articles Comment »

Comments are closed.