Allowing rails 4 activerecord