before save on resources/leases.rb