Skip to content

Commit

Permalink
using attribute_type_for(key)
Browse files Browse the repository at this point in the history
  • Loading branch information
inem authored Feb 3, 2021
1 parent 03c3648 commit 0a050c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/administrate/base_dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def attribute_not_found_message(attr)

def attribute_includes(attributes)
attributes.map do |key|
field = self.class::ATTRIBUTE_TYPES.fetch(key)
field = attribute_type_for(key)

key if field.associative?
end.compact
Expand Down

0 comments on commit 0a050c9

Please sign in to comment.