Class: ProviderPrivacyConfigurationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ProviderPrivacyConfigurationsController
- Defined in:
- app/controllers/provider_privacy_configurations_controller.rb
Instance Method Summary (collapse)
Methods inherited from ApplicationController
Instance Method Details
- (Object) edit
5 6 7 |
# File 'app/controllers/provider_privacy_configurations_controller.rb', line 5 def edit @privacy = current_user.provider_privacy_configuration end |
- (Object) update
9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/provider_privacy_configurations_controller.rb', line 9 def update @privacy = current_user.provider_privacy_configuration if @privacy.update(provider_privacy_configuration_params) redirect_to root_path, notice: 'Privacy configurations updated successfully!' else render 'edit', status: 403 end end |