With this Rails 4 can be used too without the set_table_name error.