For a regular method I can just call obj.method(:name).source_location
and that works great, however if I do that for associations the source_location
points me to .../activerecord-4.2.0/lib/active_record/associations/builder/association.rb
is there anything similar for associations?
I'm working with Spree with a bunch of extensions and there are way too many places where it can be defined, I can grep
my way to it but wondering if there's a straight forward way like source_location