Resolved error while updating lease_time and gateway

Signed-off-by: Arpit Goyal <agmps17@gmail.com>
Merge pull request #84 from agmps17/rails-4

Resolved error while updating lease_time and gateway