Rails 4 support backwards compatible to rails 3