Skip to content

Commit

Permalink
Remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Dec 12, 2017
1 parent 3c942a4 commit 14213fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/mixins/assignment_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ def get_assigned_for_target(target, options = {})
tlist = Tagging.where("tags.name like '/managed/%'")
.where(:taggable => parents)
.references(:tag).includes(:tag).map do |t|
lower_klass = tag_class(t.taggable_type)
"#{lower_klass}/tag#{t.tag.name}"
"#{tag_class(t.taggable_type)}/tag#{t.tag.name}"
end
tagged_resources = tlist.flat_map { |t| assignments_cached[t] }.uniq
(individually_assigned_resources + tagged_resources).uniq
Expand Down

0 comments on commit 14213fa

Please sign in to comment.