pre-build
Basic Code extracted from rails 4.1 project