app/controllers/concerns/adminpanel/rest_actions.rb in adminpanel-2.0.1 vs app/controllers/concerns/adminpanel/rest_actions.rb in adminpanel-2.1.0

- old
+ new

@@ -84,16 +84,16 @@ set_belongs_to_collections set_has_many_collections end def set_belongs_to_collections - @model.belongs_to_relationships.each do |class_variable| + @model.relationships_of('belongs_to').each do |class_variable| set_relationship(class_variable) end end def set_has_many_collections - @model.has_many_relationships.each do |class_variable| + @model.relationships_of('has_many').each do |class_variable| set_relationship(class_variable) end end def set_relationship(class_variable)