Class: ShepherdRails::TourStatusesController
- Inherits:
-
Object
- Object
- ShepherdRails::TourStatusesController
- Defined in:
- app/controllers/shepherd_rails/tour_statuses_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/shepherd_rails/tour_statuses_controller.rb', line 7 def create tour_name = params.require(:tour) context = params.to_unsafe_h[:context].to_h.with_indifferent_access case params.require(:event) when 'complete' ShepherdRails.configuration.on_tour_complete.call(context, tour_name) end head :ok end |