Added Rails 4 check