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 about 9 years ago
- Related to Tracker #3157: Rails 4.1 upgrade tasks added
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Daniel Lobato Garcia
- Pull request https://github.com/theforeman/foreman/pull/2907 added
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 71
Updated by Daniel Lobato Garcia about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 59bfddbb1e54c631a0967bf2ce986cc6e692234e.
Actions