rails 3->4 work
refactoring