Actions
Refactor #12457
closedUse .exists? to check subnet exists for Rails 4 compatibility
Description
On app/models/subnet.rb, the method `self.import` uses 'if first(:conditions => attrs)`. It no longer is an alias for `find(:first, *args)` but now it just fetches the first X records (`first(X)`). `.exists?` is a suitable equivalent
Actions