Rails 4 and Ruby 2 tweaks

I had to make these tweaks to get the gem to be autoloaded after upgrading to Ruby 2 and Rails 4.

Prior to this I was using Rails 3.2 and Ruby 1.2 - I haven't tested those, but I don't imagine there would be any issues caused by these changes.