Class: RailsBooking::TimeController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/rails_booking/time_controller.rb

Instance Method Summary collapse

Instance Method Details

#repeat_formObject



4
5
6
7
8
9
10
# File 'app/controllers/rails_booking/time_controller.rb', line 4

def repeat_form
  @booking = params[:booking_type].classify.constantize.new
  @booking.repeat_type = params[:repeat_type]
  if @booking.repeat_type_changed?
    @booking.repeat_days = []
  end
end