Migrated to Rails 3.2