Allow usage of rails 4