fix: Updating engine detection to work with Rails 4.1