Remove depreacation warning for rails 4.0

Fixed #47