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
Updated by Daniel Lobato Garcia over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 59bfddbb1e54c631a0967bf2ce986cc6e692234e.
Actions