Allowing to work on rails 4