Fix for #105: respect rails 4+ put/patch methods. Thx to @killthekitten