non-persisted model updated to rails 4