Skip to content

Commit d8a35d6

Browse files
committed
improve naming
1 parent 494e89e commit d8a35d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/active_admin/mongoid/filters/resource_extension.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
module ActiveAdmin::Filters::ResourceExtension
44
def default_association_filters
55
if resource_class.respond_to?(:reflect_on_all_associations)
6-
filtered = resource_class.reflect_on_all_associations.reject { |e| [:embeds_many, :embeds_one].include? e.macro }
7-
poly, not_poly = filtered.partition{ |r| r.macro == :belongs_to && r.options[:polymorphic] }
6+
without_embedded = resource_class.reflect_on_all_associations.reject { |e| [:embeds_many, :embeds_one].include? e.macro }
7+
poly, not_poly = without_embedded.partition{ |r| r.macro == :belongs_to && r.options[:polymorphic] }
88

99
filters = poly.map(&:foreign_type) + not_poly.map(&:name)
1010
filters.map &:to_sym

0 commit comments

Comments
 (0)