Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ActiveRecord version check in Rails 4.0
Rails 4.0 does not have the `ActiveRecord.gem_version` method, so this check will fail there. However, we know that if `gem_version` is not available, we are not dealing with Rails >= 5.0, so this will work in both cases. See paper-trail-gem#956 for an equivalent case elsewhere in the codebase.
- Loading branch information