Permalink
Browse files

Default to Philly when no origin specified

  • Loading branch information...
1 parent 4e6d18f commit 6c76fedee21b49770026d2197031052a7e8d0e7a @jgarber committed Apr 22, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/move_requests_controller.rb
View
1 app/controllers/move_requests_controller.rb
@@ -28,6 +28,7 @@ def show
def new
@move_request = MoveRequest.new(params[:move_request])
@move_request.build_origin unless @move_request.origin
+ @move_request.origin.address = 'Philadelphia, PA' unless @move_request.origin.address.present?
@move_request.build_destination unless @move_request.destination
if @move_request.origin
@move_request.origin.geocode

0 comments on commit 6c76fed

Please sign in to comment.