Remove strict dependency on rails 3