Skip to content

Commit

Permalink
Update default start/end date for visits to the day before/during the…
Browse files Browse the repository at this point in the history
… march
  • Loading branch information
jessepinho committed Nov 28, 2016
1 parent 74c2e8d commit e885aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/visits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class VisitsController < ApplicationController
before_action :ensure_current_user_is_visitor, only: [:show, :edit, :update, :destroy]

def new
@visit ||= Visit.new(user_id: params[:user_id])
@visit ||= Visit.new(user_id: params[:user_id], start_date: '2017-01-20', end_date: '2017-01-21')
end

def create
Expand Down

0 comments on commit e885aee

Please sign in to comment.