Skip to content

Commit

Permalink
Refs #37825 - Stop breaking Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Oct 9, 2024
1 parent 9345e46 commit e0a011f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/models/concerns/foreman/sti.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,5 @@ def new(attributes = nil, &block)
super
end
end

def save(*args, **kwargs)
type_changed = type_changed?
self.class.instance_variable_set("@finder_needs_type_condition", :false) if type_changed
super
ensure
self.class.instance_variable_set("@finder_needs_type_condition", :true) if type_changed
end
end
end

0 comments on commit e0a011f

Please sign in to comment.