Update dependency for rails 4.0
Remove deprecated methods