Fix deprecation warning of InstanceMethods.
Merge pull request #1 from dlackty/rails-deprecation-warning

Fix deprecation warning of InstanceMethods.