registrations_controller.rb 264 B

1234567891011
  1. module Users
  2. class RegistrationsController < Devise::RegistrationsController
  3. after_action :create_default_scenario, only: :create
  4. private
  5. def create_default_scenario
  6. DefaultScenarioImporter.import(@user) if @user.persisted?
  7. end
  8. end
  9. end