Rails 4 shims

Addresses #113 but I wouldn't say it fixes it. 

r: @Hammadk @csaunders