remove depencency on rails 3.0