Added Rails 3.x support

Rails 3.x is now supported with this little change.

All tests passed perfectly and everything seems to be working with this little change :smile: