sferik/rails_admin — pull request #1255 by themgt (2012-07-18 18:07:23+00:00)
Title: show nested model associations

if you have say:
class Company
has_many :addresses, :inverse_of => :company
end

class Country
belongs_to :address, :inverse_of => :country
end

class Address
belongs_to :company, :inverse_of => :addresses
belongs_to :country, :inverse_of => :addresses
end

In RA the nested form for addresses in /admin/company/new will not show select fields for either company_id or country_id, even though country_id should still be present. I believe this change fixes the filtering, which was seemingly before skipping all associations in nested models? I'm not actually sure the 'field.inverse_of.presence && field.inverse_of == nested_in' is actually correct/needed?