replace deprecated method with suggested one
Merge pull request #5 from Raizlabs/AM-deprecation

replace deprecated method with suggested one