changed for active_record 4 support
Merge pull request #1 from tankwanghow/master

Rails 4 Support